summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/common/assert.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/assert.cpp b/src/common/assert.cpp
index b20c19123..1a85faccf 100644
--- a/src/common/assert.cpp
+++ b/src/common/assert.cpp
@@ -7,7 +7,7 @@
#include "common/settings.h"
void assert_check_condition(bool cond, std::function<void()>&& on_failure) {
- if (!cond) {
+ if (!cond) [[unlikely]] {
on_failure();
if (Settings::values.use_debug_asserts) {