diff options
author | Eric Holk <eric.holk@gmail.com> | 2017-02-03 16:06:02 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2017-02-03 16:06:02 -0800 |
commit | 04fc050edf3eeff85a77910a4d6821bff59fade2 (patch) | |
tree | 474e13a9afc0c2b8bd3fcffc63004dc607bbd967 /src/passes/ReorderLocals.cpp | |
parent | 47457e4d7d5fa750c343d288b3f5a607d27f66ff (diff) | |
download | binaryen-04fc050edf3eeff85a77910a4d6821bff59fade2.tar.gz binaryen-04fc050edf3eeff85a77910a4d6821bff59fade2.tar.bz2 binaryen-04fc050edf3eeff85a77910a4d6821bff59fade2.zip |
Remove unused captures to fix warnings/errors when compiling with Clang (#896)
Diffstat (limited to 'src/passes/ReorderLocals.cpp')
-rw-r--r-- | src/passes/ReorderLocals.cpp | 2 |
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)) { |