summaryrefslogtreecommitdiff
path: root/src/passes/ReorderLocals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/ReorderLocals.cpp')
-rw-r--r--src/passes/ReorderLocals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/ReorderLocals.cpp b/src/passes/ReorderLocals.cpp
index 8cc8fa4f1..511f4e333 100644
--- a/src/passes/ReorderLocals.cpp
+++ b/src/passes/ReorderLocals.cpp
@@ -42,7 +42,7 @@ struct ReorderLocals : public WalkerPass<PostWalker<ReorderLocals, Visitor<Reord
newToOld.push_back(i);
}
// sort, keeping params in front (where they will not be moved)
- sort(newToOld.begin(), newToOld.end(), [this, curr, &newToOld](Index a, Index b) -> bool {
+ sort(newToOld.begin(), newToOld.end(), [this, curr](Index a, Index b) -> bool {
if (curr->isParam(a) && !curr->isParam(b)) return true;
if (curr->isParam(b) && !curr->isParam(a)) return false;
if (curr->isParam(b) && curr->isParam(a)) {