diff options
Diffstat (limited to 'src/passes/FuncCastEmulation.cpp')
-rw-r--r-- | src/passes/FuncCastEmulation.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/passes/FuncCastEmulation.cpp b/src/passes/FuncCastEmulation.cpp index 9d6923703..f938da3b7 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 anyref: { + assert(false && "anyref cannot be converted to i64"); + WASM_UNREACHABLE(); + } case exnref: { assert(false && "exnref cannot be converted to i64"); WASM_UNREACHABLE(); @@ -108,6 +112,10 @@ static Expression* fromABI(Expression* value, Type type, Module* module) { assert(false && "v128 not implemented yet"); WASM_UNREACHABLE(); } + case anyref: { + assert(false && "anyref cannot be converted from i64"); + WASM_UNREACHABLE(); + } case exnref: { assert(false && "exnref cannot be converted from i64"); WASM_UNREACHABLE(); |