Skip to content

Commit 47436ab

Browse files
authored
Use MF variable
1 parent 10aaf8c commit 47436ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ void AMDGPUCallLowering::lowerParameter(MachineIRBuilder &B, ArgInfo &OrigArg,
416416
const Function &F = MF.getFunction();
417417
const DataLayout &DL = F.getDataLayout();
418418
const SITargetLowering &TLI = *getTLI<SITargetLowering>();
419-
MachinePointerInfo PtrInfo = TLI.getKernargSegmentPtrInfo(B.getMF());
419+
MachinePointerInfo PtrInfo = TLI.getKernargSegmentPtrInfo(MF);
420420

421421
LLT PtrTy = LLT::pointer(AMDGPUAS::CONSTANT_ADDRESS, 64);
422422

0 commit comments

Comments
 (0)