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 @@ -1545,8 +1545,9 @@ void HoistSpillHelper::runHoistSpills(
15451545 for (MachineDomTreeNode *Child : (*RIt)->children ()) {
15461546 if (!SpillsInSubTreeMap.contains (Child))
15471547 continue ;
1548- // The stmt "auto &[...] = SpillsInSubTreeMap[*RIt]" below
1549- // should be placed before getting the begin and end iterators of
1548+ // The stmt:
1549+ // "auto &[SpillsInSubTree, SubTreeCost] = SpillsInSubTreeMap[*RIt]"
1550+ // below should be placed before getting the begin and end iterators of
15501551 // SpillsInSubTreeMap[Child].first, or else the iterators may be
15511552 // invalidated when SpillsInSubTreeMap[*RIt] is seen the first time
15521553 // and the map grows and then the original buckets in the map are moved.
You can’t perform that action at this time.
0 commit comments