ng_region: no need to copy enters

This commit is contained in:
Justin Viiret 2017-03-22 10:56:59 +11:00 committed by Matthew Barr
parent 699ab4190a
commit 1200f33116

View File

@ -194,7 +194,9 @@ void buildInitialCandidate(const AcyclicGraph &g,
return;
}
auto enters = exits.front().open; // copy
// Note: findExits() will clear exits, so it's safe to mutate/move its
// elements here.
auto &enters = exits.front().open;
candidate.clear();
for (; it != ite; ++it) {