diff options
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r-- | src/wasm-type.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h index 4188c438d..b61fe68a6 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h @@ -315,6 +315,9 @@ public: // But converting raw TypeID is more dangerous, so make it explicit explicit HeapType(TypeID id) : id(id) {} + // Choose an arbitrary heap type as the default. + constexpr HeapType() : HeapType(func) {} + HeapType(Signature signature); HeapType(const Struct& struct_); HeapType(Struct&& struct_); |