diff options
Diffstat (limited to 'src/binaryen-c.cpp')
-rw-r--r-- | src/binaryen-c.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp index 697d9a1e3..87e1fdb0b 100644 --- a/src/binaryen-c.cpp +++ b/src/binaryen-c.cpp @@ -74,7 +74,7 @@ BinaryenLiteral toBinaryenLiteral(Literal x) { case Type::exnref: // there's no exnref literals case Type::none: case Type::unreachable: - WASM_UNREACHABLE(); + WASM_UNREACHABLE("unexpected type"); } return ret; } @@ -95,9 +95,9 @@ Literal fromBinaryenLiteral(BinaryenLiteral x) { case Type::exnref: // there's no exnref literals case Type::none: case Type::unreachable: - WASM_UNREACHABLE(); + WASM_UNREACHABLE("unexpected type"); } - WASM_UNREACHABLE(); + WASM_UNREACHABLE("invalid type"); } // Mutexes (global for now; in theory if multiple modules @@ -216,7 +216,7 @@ void printArg(std::ostream& setup, std::ostream& out, BinaryenLiteral arg) { case Type::exnref: // there's no exnref literals case Type::none: case Type::unreachable: - WASM_UNREACHABLE(); + WASM_UNREACHABLE("unexpected type"); } } |