diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/asmjs/asm_v_wasm.cpp | 5 | ||||
-rw-r--r-- | src/shell-interface.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/asmjs/asm_v_wasm.cpp b/src/asmjs/asm_v_wasm.cpp index f5e4b7815..e87e13062 100644 --- a/src/asmjs/asm_v_wasm.cpp +++ b/src/asmjs/asm_v_wasm.cpp @@ -15,6 +15,7 @@ */ #include "asm_v_wasm.h" +#include "support/utilities.h" #include "wasm.h" namespace wasm { @@ -31,14 +32,14 @@ AsmType wasmToAsmType(Type type) { case Type::i64: return ASM_INT64; case Type::v128: - assert(false && "v128 not implemented yet"); + WASM_UNREACHABLE("v128 not implemented yet"); case Type::funcref: case Type::externref: case Type::anyref: case Type::eqref: case Type::i31ref: case Type::dataref: - assert(false && "reference types are not supported by asm2wasm"); + WASM_UNREACHABLE("reference types are not supported by asm2wasm"); case Type::none: return ASM_NONE; case Type::unreachable: diff --git a/src/shell-interface.h b/src/shell-interface.h index 3c7f1832a..1cb8768cf 100644 --- a/src/shell-interface.h +++ b/src/shell-interface.h @@ -25,6 +25,7 @@ #include "ir/module-utils.h" #include "shared-constants.h" #include "support/name.h" +#include "support/utilities.h" #include "wasm-interpreter.h" #include "wasm.h" @@ -119,7 +120,7 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface { globals[import->name] = {Literal(double(666.6))}; break; case Type::v128: - assert(false && "v128 not implemented yet"); + WASM_UNREACHABLE("v128 not implemented yet"); case Type::funcref: case Type::externref: case Type::anyref: |