Skip to content

Commit 2e64308

Browse files
!fixup remove value from memoperand
1 parent 1d0f5a6 commit 2e64308

File tree

2 files changed

+61
-57
lines changed

2 files changed

+61
-57
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,11 @@ void RISCVCallLowering::saveVarArgRegisters(
483483
FI = MFI.CreateFixedObject(XLenInBytes, VaArgOffset, true);
484484
auto FIN = MIRBuilder.buildFrameIndex(p0, FI);
485485
auto MPO = MachinePointerInfo::getFixedStack(MF, FI);
486-
MIRBuilder.buildStore(VReg, FIN, MPO, inferAlignFromPtrInfo(MF, MPO));
486+
auto Store =
487+
MIRBuilder.buildStore(VReg, FIN, MPO, inferAlignFromPtrInfo(MF, MPO));
488+
// This was taken from SelectionDAG, but we are not sure why it exists.
489+
// It is being investigated in github.com/llvm/llvm-project/issues/73735.
490+
Store->memoperands()[0]->setValue((Value *)nullptr);
487491
}
488492
}
489493

0 commit comments

Comments
 (0)