diff options
Diffstat (limited to 'src/wasm/literal.cpp')
-rw-r--r-- | src/wasm/literal.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp index 4bae54693..7c674ffc5 100644 --- a/src/wasm/literal.cpp +++ b/src/wasm/literal.cpp @@ -133,12 +133,14 @@ Literal::Literal(const Literal& other) : type(other.type) { case HeapType::none: case HeapType::noext: case HeapType::nofunc: + case HeapType::noexn: WASM_UNREACHABLE("null literals should already have been handled"); case HeapType::any: case HeapType::eq: case HeapType::func: case HeapType::struct_: case HeapType::array: + case HeapType::exn: WASM_UNREACHABLE("invalid type"); case HeapType::string: case HeapType::stringview_wtf8: @@ -613,9 +615,15 @@ std::ostream& operator<<(std::ostream& o, Literal literal) { case HeapType::nofunc: o << "nullfuncref"; break; + case HeapType::noexn: + o << "nullexnref"; + break; case HeapType::ext: o << "externref"; break; + case HeapType::exn: + o << "exnref"; + break; case HeapType::any: case HeapType::eq: case HeapType::func: |