diff options
author | walkingeyerobot <mitch@thefoley.net> | 2021-02-23 17:11:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 14:11:49 -0800 |
commit | c127eccf753ab86a4d5deecbd0f3fa78a83e42ad (patch) | |
tree | 0ea15f58c3d3fc23a3dd536430966c7f99693dc5 /src/asmjs/asm_v_wasm.cpp | |
parent | 3f5eca2423450389c3444817c21aa0d24f512528 (diff) | |
download | binaryen-c127eccf753ab86a4d5deecbd0f3fa78a83e42ad.tar.gz binaryen-c127eccf753ab86a4d5deecbd0f3fa78a83e42ad.tar.bz2 binaryen-c127eccf753ab86a4d5deecbd0f3fa78a83e42ad.zip |
Cleanup fallthrough warnings when building without asserts (#3598)
Diffstat (limited to 'src/asmjs/asm_v_wasm.cpp')
-rw-r--r-- | src/asmjs/asm_v_wasm.cpp | 5 |
1 files changed, 3 insertions, 2 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: |