summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ir/gc-type-utils.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ir/gc-type-utils.h b/src/ir/gc-type-utils.h
index cec4490e2..abe5f2dfc 100644
--- a/src/ir/gc-type-utils.h
+++ b/src/ir/gc-type-utils.h
@@ -100,7 +100,7 @@ inline EvaluationResult evaluateKindCheck(Expression* curr) {
expected = I31;
break;
default:
- WASM_UNREACHABLE("unhandled BrOn");
+ WASM_UNREACHABLE("unhandled RefIs");
}
child = is->value;
} else if (auto* as = curr->dynCast<RefAs>()) {
@@ -117,8 +117,12 @@ inline EvaluationResult evaluateKindCheck(Expression* curr) {
case RefAsI31:
expected = I31;
break;
+ case ExternInternalize:
+ case ExternExternalize:
+ // These instructions can never be removed.
+ return Unknown;
default:
- WASM_UNREACHABLE("unhandled BrOn");
+ WASM_UNREACHABLE("unhandled RefAs");
}
child = as->value;
} else {