summaryrefslogtreecommitdiff
path: root/src/wasm-builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r--src/wasm-builder.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h
index 49c9bb0ba..915c189ae 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -891,15 +891,8 @@ public:
ret->finalize();
return ret;
}
- BrOn* makeBrOn(BrOnOp op, Name name, Expression* ref) {
- auto* ret = wasm.allocator.alloc<BrOn>();
- ret->op = op;
- ret->name = name;
- ret->ref = ref;
- ret->finalize();
- return ret;
- }
- BrOn* makeBrOn(BrOnOp op, Name name, Expression* ref, Type castType) {
+ BrOn*
+ makeBrOn(BrOnOp op, Name name, Expression* ref, Type castType = Type::none) {
auto* ret = wasm.allocator.alloc<BrOn>();
ret->op = op;
ret->name = name;