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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h
index 516d1cc15..bb37ed340 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -709,8 +709,10 @@ public:
ret->finalize();
return ret;
}
- BrOnCast* makeBrOnCast(Name name, Expression* ref, Expression* rtt) {
- auto* ret = wasm.allocator.alloc<BrOnCast>();
+ BrOn*
+ makeBrOn(BrOnOp op, Name name, Expression* ref, Expression* rtt = nullptr) {
+ auto* ret = wasm.allocator.alloc<BrOn>();
+ ret->op = op;
ret->name = name;
ret->ref = ref;
ret->rtt = rtt;