summaryrefslogtreecommitdiff
path: root/src/passes/FuncCastEmulation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/FuncCastEmulation.cpp')
-rw-r--r--src/passes/FuncCastEmulation.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/passes/FuncCastEmulation.cpp b/src/passes/FuncCastEmulation.cpp
index 729a4a6c3..9d5109a83 100644
--- a/src/passes/FuncCastEmulation.cpp
+++ b/src/passes/FuncCastEmulation.cpp
@@ -65,11 +65,11 @@ static Expression* toABI(Expression* value, Module* module) {
case v128: {
WASM_UNREACHABLE("v128 not implemented yet");
}
- case anyref: {
- WASM_UNREACHABLE("anyref cannot be converted to i64");
- }
+ case funcref:
+ case anyref:
+ case nullref:
case exnref: {
- WASM_UNREACHABLE("exnref cannot be converted to i64");
+ WASM_UNREACHABLE("reference types cannot be converted to i64");
}
case none: {
// the value is none, but we need a value here
@@ -108,11 +108,11 @@ static Expression* fromABI(Expression* value, Type type, Module* module) {
case v128: {
WASM_UNREACHABLE("v128 not implemented yet");
}
- case anyref: {
- WASM_UNREACHABLE("anyref cannot be converted from i64");
- }
+ case funcref:
+ case anyref:
+ case nullref:
case exnref: {
- WASM_UNREACHABLE("exnref cannot be converted from i64");
+ WASM_UNREACHABLE("reference types cannot be converted from i64");
}
case none: {
value = builder.makeDrop(value);