aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/opthelpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/opthelpers.h b/common/opthelpers.h
index ae14f1d9..726179de 100644
--- a/common/opthelpers.h
+++ b/common/opthelpers.h
@@ -44,7 +44,7 @@ constexpr bool unlikely(T&& expr) noexcept { return static_cast<bool>(std::forwa
#elif defined(_MSC_VER)
#define ASSUME __assume
#elif defined(__GNUC__)
-#define ASSUME(x) do { if(!(x)) __builtin_unreachable(); } while(0)
+#define ASSUME(x) do { if(x) break; __builtin_unreachable(); } while(0)
#else
#define ASSUME(x) ((void)0)
#endif