diff options
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
-rw-r--r-- | src/wasm/wasm-stack.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/wasm/wasm-stack.cpp b/src/wasm/wasm-stack.cpp index fae9da140..7b902ad67 100644 --- a/src/wasm/wasm-stack.cpp +++ b/src/wasm/wasm-stack.cpp @@ -1864,8 +1864,14 @@ void BinaryInstWriter::visitRefNull(RefNull* curr) { parent.writeHeapType(curr->type.getHeapType()); } -void BinaryInstWriter::visitRefIsNull(RefIsNull* curr) { - o << int8_t(BinaryConsts::RefIsNull); +void BinaryInstWriter::visitRefIs(RefIs* curr) { + switch (curr->op) { + case RefIsNull: + o << int8_t(BinaryConsts::RefIsNull); + break; + default: + WASM_UNREACHABLE("unimplemented ref.is_*"); + } } void BinaryInstWriter::visitRefFunc(RefFunc* curr) { |