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.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/passes/FuncCastEmulation.cpp b/src/passes/FuncCastEmulation.cpp
index 904b8a202..ce5332a49 100644
--- a/src/passes/FuncCastEmulation.cpp
+++ b/src/passes/FuncCastEmulation.cpp
@@ -66,6 +66,10 @@ static Expression* toABI(Expression* value, Module* module) {
assert(false && "v128 not implemented yet");
WASM_UNREACHABLE();
}
+ case except_ref: {
+ assert(false && "except_ref cannot be converted to i64");
+ WASM_UNREACHABLE();
+ }
case none: {
// the value is none, but we need a value here
value = builder.makeSequence(value, LiteralUtils::makeZero(i64, *module));
@@ -104,6 +108,10 @@ static Expression* fromABI(Expression* value, Type type, Module* module) {
assert(false && "v128 not implemented yet");
WASM_UNREACHABLE();
}
+ case except_ref: {
+ assert(false && "except_ref cannot be converted from i64");
+ WASM_UNREACHABLE();
+ }
case none: {
value = builder.makeDrop(value);
}