Skip to content

Commit 10aaf8c

Browse files
authored
Fix build
1 parent 0e3b67f commit 10aaf8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ void AMDGPUCallLowering::lowerParameter(MachineIRBuilder &B, ArgInfo &OrigArg,
415415
MachineFunction &MF = B.getMF();
416416
const Function &F = MF.getFunction();
417417
const DataLayout &DL = F.getDataLayout();
418-
419-
MachinePointerInfo PtrInfo = getKernargSegmentPtrInfo(B.getMF());
418+
const SITargetLowering &TLI = *getTLI<SITargetLowering>();
419+
MachinePointerInfo PtrInfo = TLI.getKernargSegmentPtrInfo(B.getMF());
420420

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

0 commit comments

Comments
 (0)