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 d5aa6df commit c531255Copy full SHA for c531255
llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
@@ -230,9 +230,10 @@ void FunctionVarLocs::init(FunctionVarLocsBuilder &Builder) {
230
for (const DbgVariableRecord &DVR : filterDbgVars(I->getDbgRecordRange())) {
231
// Even though DVR defines a variable location, VarLocsBeforeInst can
232
// still be empty if that VarLoc was redundant.
233
- if (!Builder.VarLocsBeforeInst.count(&DVR))
+ auto It = Builder.VarLocsBeforeInst.find(&DVR);
234
+ if (It == Builder.VarLocsBeforeInst.end())
235
continue;
- for (const VarLocInfo &VarLoc : Builder.VarLocsBeforeInst[&DVR])
236
+ for (const VarLocInfo &VarLoc : It->second)
237
VarLocRecords.emplace_back(VarLoc);
238
}
239
for (const VarLocInfo &VarLoc : P.second)
0 commit comments