mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	Use cast to MVT instead of EVT on a couple calls to getSizeInBits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217473 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -2504,7 +2504,7 @@ PPCTargetLowering::LowerFormalArguments_32SVR4(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    // Make room for NumGPArgRegs and NumFPArgRegs.
 | 
					    // Make room for NumGPArgRegs and NumFPArgRegs.
 | 
				
			||||||
    int Depth = NumGPArgRegs * PtrVT.getSizeInBits()/8 +
 | 
					    int Depth = NumGPArgRegs * PtrVT.getSizeInBits()/8 +
 | 
				
			||||||
                NumFPArgRegs * EVT(MVT::f64).getSizeInBits()/8;
 | 
					                NumFPArgRegs * MVT(MVT::f64).getSizeInBits()/8;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    FuncInfo->setVarArgsStackOffset(
 | 
					    FuncInfo->setVarArgsStackOffset(
 | 
				
			||||||
      MFI->CreateFixedObject(PtrVT.getSizeInBits()/8,
 | 
					      MFI->CreateFixedObject(PtrVT.getSizeInBits()/8,
 | 
				
			||||||
@@ -2546,7 +2546,7 @@ PPCTargetLowering::LowerFormalArguments_32SVR4(
 | 
				
			|||||||
                                   MachinePointerInfo(), false, false, 0);
 | 
					                                   MachinePointerInfo(), false, false, 0);
 | 
				
			||||||
      MemOps.push_back(Store);
 | 
					      MemOps.push_back(Store);
 | 
				
			||||||
      // Increment the address by eight for the next argument to store
 | 
					      // Increment the address by eight for the next argument to store
 | 
				
			||||||
      SDValue PtrOff = DAG.getConstant(EVT(MVT::f64).getSizeInBits()/8,
 | 
					      SDValue PtrOff = DAG.getConstant(MVT(MVT::f64).getSizeInBits()/8,
 | 
				
			||||||
                                         PtrVT);
 | 
					                                         PtrVT);
 | 
				
			||||||
      FIN = DAG.getNode(ISD::ADD, dl, PtrOff.getValueType(), FIN, PtrOff);
 | 
					      FIN = DAG.getNode(ISD::ADD, dl, PtrOff.getValueType(), FIN, PtrOff);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user