diff options
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)); |