From a28343a33ed28b4d5c83c37e350aceaf09b5246f Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 5 Dec 2019 13:09:21 -0600 Subject: Add string parameter to WASM_UNREACHABLE (#2499) This works more like llvm's unreachable handler in that is preserves information even in release builds. --- src/passes/Asyncify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/passes/Asyncify.cpp') diff --git a/src/passes/Asyncify.cpp b/src/passes/Asyncify.cpp index 818d61907..d92181639 100644 --- a/src/passes/Asyncify.cpp +++ b/src/passes/Asyncify.cpp @@ -841,7 +841,7 @@ private: // the state, so there should be nothing that can reach here - add it // earlier as necessary. // std::cout << *curr << '\n'; - WASM_UNREACHABLE(); + WASM_UNREACHABLE("unexpected expression type"); } // Possibly skip some code, if rewinding. -- cgit v1.2.3