diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-09-22 12:13:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 12:13:12 -0700 |
commit | e5bf7680a0616f994a9c5c266df9ba76f21e93e9 (patch) | |
tree | b141bd00a7368c438ca51cd54a77658b06734fad /src/tools | |
parent | 0f9339d4e9cfce796d5056c962a183680a19c8ea (diff) | |
download | binaryen-e5bf7680a0616f994a9c5c266df9ba76f21e93e9.tar.gz binaryen-e5bf7680a0616f994a9c5c266df9ba76f21e93e9.tar.bz2 binaryen-e5bf7680a0616f994a9c5c266df9ba76f21e93e9.zip |
Remove redundant allocator in Builder (#3144)
Builders gained a `Module` field in #3130 because they now require extra context
to properly finalize some Expressions. Since modules contain allocators, the old
allocator field on the builder became redundant after that change. This PR
removes the redundant allocator field.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/wasm2js.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wasm2js.cpp b/src/tools/wasm2js.cpp index 95d93cdbd..348fc6c10 100644 --- a/src/tools/wasm2js.cpp +++ b/src/tools/wasm2js.cpp @@ -810,7 +810,7 @@ void AssertionEmitter::emit() { } )"; - Builder wasmBuilder(sexpBuilder.getAllocator(), sexpBuilder.getModule()); + Builder wasmBuilder(sexpBuilder.getModule()); Name asmModule = std::string("ret") + ASM_FUNC.str; for (size_t i = 0; i < root.size(); ++i) { Element& e = *root[i]; |