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 @@ -96,9 +96,10 @@ class DroppedVariableStats {
96
96
DenseSet<VarID> &DebugVariablesBeforeSet =
97
97
DbgVariables.DebugVariablesBefore ;
98
98
DenseSet<VarID> &DebugVariablesAfterSet = DbgVariables.DebugVariablesAfter ;
99
- if (InlinedAts.back ().find (FuncName) == InlinedAts.back ().end ())
99
+ auto It = InlinedAts.back ().find (FuncName);
100
+ if (It == InlinedAts.back ().end ())
100
101
return ;
101
- DenseMap<VarID, DILocation *> &InlinedAtsMap = InlinedAts. back ()[FuncName] ;
102
+ DenseMap<VarID, DILocation *> &InlinedAtsMap = It-> second ;
102
103
// Find an Instruction that shares the same scope as the dropped #dbg_value
103
104
// or has a scope that is the child of the scope of the #dbg_value, and has
104
105
// 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