diff options
-rw-r--r-- | src/passes/ReorderLocals.cpp | 2 | ||||
-rw-r--r-- | src/passes/SSAify.cpp | 2 | ||||
-rw-r--r-- | test/binaryen.js/kitchen-sink.js | 2 |
3 files changed, 4 insertions, 2 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. diff --git a/test/binaryen.js/kitchen-sink.js b/test/binaryen.js/kitchen-sink.js index 09828817a..c5f1f059a 100644 --- a/test/binaryen.js/kitchen-sink.js +++ b/test/binaryen.js/kitchen-sink.js @@ -501,7 +501,7 @@ function test_binaries() { assert(size < 512); // this is a tiny module // read the module from the binary - module = Binaryen.readBinary(buffer, size); + module = Binaryen.readBinary(buffer); // validate, print, and free assert(module.validate()); |