summaryrefslogtreecommitdiff
path: root/src/wasm-js.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-js.cpp')
-rw-r--r--src/wasm-js.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wasm-js.cpp b/src/wasm-js.cpp
index 381487cd0..6e4b03aca 100644
--- a/src/wasm-js.cpp
+++ b/src/wasm-js.cpp
@@ -250,10 +250,12 @@ extern "C" void EMSCRIPTEN_KEEPALIVE instantiate() {
switch (type) {
case none: return Literal();
case i32: return Literal((int32_t)ret);
+ case i64: WASM_UNREACHABLE();
case f32: return Literal((float)ret);
case f64: return Literal((double)ret);
- default: abort();
+ case unreachable: WASM_UNREACHABLE();
}
+ WASM_UNREACHABLE();
}
void importGlobals(std::map<Name, Literal>& globals, Module& wasm) override {