summaryrefslogtreecommitdiff
path: root/src/compiler-support.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler-support.h')
-rw-r--r--src/compiler-support.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler-support.h b/src/compiler-support.h
index 3dd873383..f2e58ff5e 100644
--- a/src/compiler-support.h
+++ b/src/compiler-support.h
@@ -27,7 +27,7 @@
// If control flow reaches the point of the WASM_UNREACHABLE(), the program is
// undefined.
-#if __has_builtin(__builtin_unreachable)
+#if __has_builtin(__builtin_unreachable) && defined(NDEBUG)
# define WASM_UNREACHABLE() __builtin_unreachable()
#elif defined(_MSC_VER)
# define WASM_UNREACHABLE() __assume(false)