File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,10 @@ void DroppedVariableStats::calculateDroppedStatsAndPrint(
44
44
unsigned DroppedCount = 0 ;
45
45
DenseSet<VarID> &DebugVariablesBeforeSet = DbgVariables.DebugVariablesBefore ;
46
46
DenseSet<VarID> &DebugVariablesAfterSet = DbgVariables.DebugVariablesAfter ;
47
- if (InlinedAts.back ().find (FuncName) == InlinedAts.back ().end ())
47
+ auto It = InlinedAts.back ().find (FuncName);
48
+ if (It == InlinedAts.back ().end ())
48
49
return ;
49
- DenseMap<VarID, DILocation *> &InlinedAtsMap = InlinedAts. back ()[FuncName] ;
50
+ DenseMap<VarID, DILocation *> &InlinedAtsMap = It-> second ;
50
51
// Find an Instruction that shares the same scope as the dropped #dbg_value
51
52
// or has a scope that is the child of the scope of the #dbg_value, and has
52
53
// an inlinedAt equal to the inlinedAt of the #dbg_value or it's inlinedAt
You can’t perform that action at this time.
0 commit comments