Skip to content

Commit 0e3b67f

Browse files
authored
Use helper
1 parent 2721bf1 commit 0e3b67f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,7 @@ void AMDGPUCallLowering::lowerParameter(MachineIRBuilder &B, ArgInfo &OrigArg,
416416
const Function &F = MF.getFunction();
417417
const DataLayout &DL = F.getDataLayout();
418418

419-
// This isn't really a constant pool but close enough.
420-
MachinePointerInfo PtrInfo(MF.getPSVManager().getConstantPool(),
421-
AMDGPUAS::CONSTANT_ADDRESS);
419+
MachinePointerInfo PtrInfo = getKernargSegmentPtrInfo(B.getMF());
422420

423421
LLT PtrTy = LLT::pointer(AMDGPUAS::CONSTANT_ADDRESS, 64);
424422

0 commit comments

Comments
 (0)