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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h
index 876474223..3eb263580 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -618,6 +618,11 @@ public:
ret->finalize();
return ret;
}
+ RefNull* makeRefNull(HeapType type) {
+ auto* ret = wasm.allocator.alloc<RefNull>();
+ ret->finalize(Type(type, Nullable));
+ return ret;
+ }
RefNull* makeRefNull(Type type) {
auto* ret = wasm.allocator.alloc<RefNull>();
ret->finalize(type);