diff options
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index 59c8d4c1b..1ae018e13 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -705,9 +705,13 @@ public: ret->finalize(); return ret; } - BrOnCast* makeBrOnCast() { + BrOnCast* + makeBrOnCast(Name name, HeapType heapType, Expression* ref, Expression* rtt) { auto* ret = wasm.allocator.alloc<BrOnCast>(); - WASM_UNREACHABLE("TODO (gc): br_on_cast"); + ret->name = name; + ret->castType = Type(heapType, Nullable); + ret->ref = ref; + ret->rtt = rtt; ret->finalize(); return ret; } |