We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 671088b commit a588e20Copy full SHA for a588e20
llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
@@ -871,10 +871,11 @@ SDValue SelectionDAGBuilder::LowerAsSTATEPOINT(
871
for (const auto *Relocate : SI.GCRelocates) {
872
Value *Derived = Relocate->getDerivedPtr();
873
SDValue SD = getValue(Derived);
874
- if (!LowerAsVReg.count(SD))
+ auto It = LowerAsVReg.find(SD);
875
+ if (It == LowerAsVReg.end())
876
continue;
877
- SDValue Relocated = SDValue(StatepointMCNode, LowerAsVReg[SD]);
878
+ SDValue Relocated = SDValue(StatepointMCNode, It->second);
879
880
// Handle local relocate. Note that different relocates might
881
// map to the same SDValue.
0 commit comments