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 a193dd8d5..79f3ec8df 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -795,6 +795,11 @@ public:
ret->finalize();
return ret;
}
+ RttSub* makeRttFreshSub(HeapType heapType, Expression* parent) {
+ auto* ret = makeRttSub(heapType, parent);
+ ret->fresh = true;
+ return ret;
+ }
template<typename T>
StructNew* makeStructNew(Expression* rtt, const T& args) {
auto* ret = wasm.allocator.alloc<StructNew>();