File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
llvm/lib/CodeGen/LiveDebugValues Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1070,9 +1070,7 @@ class VLocTracker {
1070
1070
: DbgValue (Properties, DbgValue::Undef);
1071
1071
1072
1072
// Attempt insertion; overwrite if it's already mapped.
1073
- auto Result = Vars.insert (std::make_pair (VarID, Rec));
1074
- if (!Result.second )
1075
- Result.first ->second = Rec;
1073
+ Vars.insert_or_assign (VarID, Rec);
1076
1074
Scopes[VarID] = MI.getDebugLoc ().get ();
1077
1075
1078
1076
considerOverlaps (Var, MI.getDebugLoc ().get ());
@@ -1100,9 +1098,7 @@ class VLocTracker {
1100
1098
DbgValue Rec = DbgValue (EmptyProperties, DbgValue::Undef);
1101
1099
1102
1100
// Attempt insertion; overwrite if it's already mapped.
1103
- auto Result = Vars.insert (std::make_pair (OverlappedID, Rec));
1104
- if (!Result.second )
1105
- Result.first ->second = Rec;
1101
+ Vars.insert_or_assign (OverlappedID, Rec);
1106
1102
Scopes[OverlappedID] = Loc;
1107
1103
}
1108
1104
}
You can’t perform that action at this time.
0 commit comments