Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -871,10 +871,11 @@ SDValue SelectionDAGBuilder::LowerAsSTATEPOINT(
for (const auto *Relocate : SI.GCRelocates) {
Value *Derived = Relocate->getDerivedPtr();
SDValue SD = getValue(Derived);
if (!LowerAsVReg.count(SD))
auto It = LowerAsVReg.find(SD);
if (It == LowerAsVReg.end())
continue;

SDValue Relocated = SDValue(StatepointMCNode, LowerAsVReg[SD]);
SDValue Relocated = SDValue(StatepointMCNode, It->second);

// Handle local relocate. Note that different relocates might
// map to the same SDValue.
Expand Down
Loading