File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ static void removeIdenticalIndexPair(
118118}
119119
120120void StableFunctionMap::finalize () {
121- for (auto It = HashToFuncs.begin (); It != HashToFuncs.end ();) {
121+ for (auto It = HashToFuncs.begin (); It != HashToFuncs.end (); ++It ) {
122122 auto &[StableHash, SFS] = *It;
123123
124124 // Group stable functions by ModuleIdentifier.
@@ -154,14 +154,13 @@ void StableFunctionMap::finalize() {
154154 }
155155 }
156156 if (Invalid) {
157- HashToFuncs.erase (It++ );
157+ HashToFuncs.erase (It);
158158 continue ;
159159 }
160160
161161 // Trim the index pair that has the same operand hash across
162162 // stable functions.
163163 removeIdenticalIndexPair (SFS);
164- ++It;
165164 }
166165
167166 Finalized = true ;
You can’t perform that action at this time.
0 commit comments