From 8c928b4686766f04e074fc7dbd360f7a2830e17e Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 6 Aug 2026 12:25:25 -0700 Subject: [PATCH] Simplify WASM_UNREACHABLE. NFC The `WASM_BUILTIN_UNREACHABLE` macro is unconditionally defined in `compiler-support.h` so checking here is redundant. --- src/support/utilities.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/support/utilities.h b/src/support/utilities.h index 0aad86c94e1..9397f033504 100644 --- a/src/support/utilities.h +++ b/src/support/utilities.h @@ -88,10 +88,8 @@ class Fatal { // undefined. #ifndef NDEBUG #define WASM_UNREACHABLE(msg) wasm::handle_unreachable(msg, __FILE__, __LINE__) -#elif defined(WASM_BUILTIN_UNREACHABLE) -#define WASM_UNREACHABLE(msg) WASM_BUILTIN_UNREACHABLE #else -#define WASM_UNREACHABLE(msg) wasm::handle_unreachable() +#define WASM_UNREACHABLE(msg) WASM_BUILTIN_UNREACHABLE #endif // Helper to create an invocable with an overloaded operator(), for use with