mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
ng_region: no need to copy enters
This commit is contained in:
committed by
Matthew Barr
parent
699ab4190a
commit
1200f33116
@@ -194,7 +194,9 @@ void buildInitialCandidate(const AcyclicGraph &g,
|
|||||||
return;
|
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();
|
candidate.clear();
|
||||||
|
|
||||||
for (; it != ite; ++it) {
|
for (; it != ite; ++it) {
|
||||||
|
Reference in New Issue
Block a user