Index: src/wasm/wasm-interpreter.h |
diff --git a/src/wasm/wasm-interpreter.h b/src/wasm/wasm-interpreter.h |
index 87758bdd24f352c7a7158aa517afa140308b1c40..217c8b37f0bf8cca7702000b8ef7f142ab07bfc6 100644 |
--- a/src/wasm/wasm-interpreter.h |
+++ b/src/wasm/wasm-interpreter.h |
@@ -56,21 +56,12 @@ |
#undef DECLARE_CONSTRUCTOR |
template <typename T> |
- inline T to() { |
- UNREACHABLE(); |
- } |
- |
- template <typename T> |
- inline T to_unchecked() { |
+ T to() { |
UNREACHABLE(); |
} |
}; |
#define DECLARE_CAST(field, localtype, ctype) \ |
- template <> \ |
- inline ctype WasmVal::to_unchecked() { \ |
- return val.field; \ |
- } \ |
template <> \ |
inline ctype WasmVal::to() { \ |
CHECK_EQ(localtype, type); \ |
@@ -78,6 +69,11 @@ |
} |
FOREACH_UNION_MEMBER(DECLARE_CAST) |
#undef DECLARE_CAST |
+ |
+template <> |
+inline void WasmVal::to() { |
+ CHECK_EQ(kWasmStmt, type); |
+} |
// Representation of frames within the interpreter. |
class WasmFrame { |