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.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h
index 6716bca20..516d1cc15 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -709,11 +709,9 @@ public:
ret->finalize();
return ret;
}
- BrOnCast*
- makeBrOnCast(Name name, HeapType heapType, Expression* ref, Expression* rtt) {
+ BrOnCast* makeBrOnCast(Name name, Expression* ref, Expression* rtt) {
auto* ret = wasm.allocator.alloc<BrOnCast>();
ret->name = name;
- ret->castType = Type(heapType, Nullable);
ret->ref = ref;
ret->rtt = rtt;
ret->finalize();