diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-09-22 12:37:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 12:37:54 -0700 |
commit | b867a54c92e36b5a53bb1c2d97c043bb6173a3af (patch) | |
tree | e2f4e21a1d223963538c4aaf930775bc9e7c351f /src | |
parent | e5bf7680a0616f994a9c5c266df9ba76f21e93e9 (diff) | |
download | binaryen-b867a54c92e36b5a53bb1c2d97c043bb6173a3af.tar.gz binaryen-b867a54c92e36b5a53bb1c2d97c043bb6173a3af.tar.bz2 binaryen-b867a54c92e36b5a53bb1c2d97c043bb6173a3af.zip |
Fix build after semantic merge conflict (#3160)
Removes even more uses of allocators.
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-builder.h | 2 | ||||
-rw-r--r-- | src/wasm2js.h | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index f0d7feae3..e0c00428f 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -556,7 +556,7 @@ public: return ret; } RefEq* makeRefEq(Expression* left, Expression* right) { - auto* ret = allocator.alloc<RefEq>(); + auto* ret = wasm.allocator.alloc<RefEq>(); ret->left = left; ret->right = right; ret->finalize(); diff --git a/src/wasm2js.h b/src/wasm2js.h index 2d65879b1..79222d4ba 100644 --- a/src/wasm2js.h +++ b/src/wasm2js.h @@ -127,8 +127,6 @@ enum class NameScope { // class Wasm2JSBuilder { - MixedArena allocator; - public: struct Flags { // see wasm2js.cpp for details @@ -939,7 +937,6 @@ Ref Wasm2JSBuilder::processFunctionBody(Module* m, Function* func; Module* module; bool standaloneFunction; - MixedArena allocator; SwitchProcessor switchProcessor; @@ -1095,7 +1092,7 @@ Ref Wasm2JSBuilder::processFunctionBody(Module* m, // we need an equivalent to an if here, so use that code Break fakeBreak = *curr; fakeBreak.condition = nullptr; - If fakeIf(allocator); + If fakeIf; fakeIf.condition = curr->condition; fakeIf.ifTrue = &fakeBreak; return visit(&fakeIf, result); @@ -1476,7 +1473,7 @@ Ref Wasm2JSBuilder::processFunctionBody(Module* m, } case Type::f32: { Ref ret = ValueBuilder::makeCall(MATH_FROUND); - Const fake(allocator); + Const fake; fake.value = Literal(double(curr->value.getf32())); fake.type = Type::f64; ret[2]->push_back(visitConst(&fake)); |