diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/passes/ReorderLocals.cpp | 2 | ||||
-rw-r--r-- | src/passes/SSAify.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/passes/ReorderLocals.cpp b/src/passes/ReorderLocals.cpp index c880714e6..fe4f775e9 100644 --- a/src/passes/ReorderLocals.cpp +++ b/src/passes/ReorderLocals.cpp @@ -19,6 +19,8 @@ // // Secondarily, sort by first appearance. This canonicalizes the order. // +// While sorting, we remove locals that have no uses at all. +// #include <memory> diff --git a/src/passes/SSAify.cpp b/src/passes/SSAify.cpp index a6127e4d6..35432d9eb 100644 --- a/src/passes/SSAify.cpp +++ b/src/passes/SSAify.cpp @@ -40,7 +40,7 @@ namespace wasm { // A set we know is impossible / not in the ast -SetLocal IMPOSSIBLE_SET; +static SetLocal IMPOSSIBLE_SET; // Tracks assignments to locals, assuming single-assignment form, i.e., // each assignment creates a new variable. |