summaryrefslogtreecommitdiff
path: root/src/wasm/wasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r--src/wasm/wasm.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index 13085ca17..f2f08033e 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -188,8 +188,13 @@ const char* getExpressionName(Expression* curr) {
return "pop";
case Expression::Id::RefNullId:
return "ref.null";
- case Expression::Id::RefIsNullId:
- return "ref.is_null";
+ case Expression::Id::RefIsId:
+ switch (curr->cast<RefIs>()->op) {
+ case RefIsNull:
+ return "ref.is_null";
+ default:
+ WASM_UNREACHABLE("unimplemented ref.is_*");
+ }
case Expression::Id::RefFuncId:
return "ref.func";
case Expression::Id::RefEqId:
@@ -929,7 +934,7 @@ void RefNull::finalize(Type type_) {
void RefNull::finalize() {
}
-void RefIsNull::finalize() {
+void RefIs::finalize() {
if (value->type == Type::unreachable) {
type = Type::unreachable;
return;