Skip to content

Commit 9330649

Browse files
!fixup use getAllocaAddrSpace
1 parent 2e64308 commit 9330649

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@ void RISCVCallLowering::saveVarArgRegisters(
470470

471471
// Copy the integer registers that may have been used for passing varargs
472472
// to the vararg save area.
473-
const LLT p0 = LLT::pointer(0, Subtarget.getXLen());
473+
const LLT p0 = LLT::pointer(MF.getDataLayout().getAllocaAddrSpace(),
474+
Subtarget.getXLen());
474475
const LLT sXLen = LLT::scalar(Subtarget.getXLen());
475476
const MVT XLenVT = Subtarget.getXLenVT();
476477
MachineRegisterInfo &MRI = MF.getRegInfo();

0 commit comments

Comments
 (0)