summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-06-08 01:46:10 +0200
committerLiam <byteslice@airmail.cc>2022-06-14 02:09:32 +0200
commita29ddcee40d78b1c1f7f64855331888777add4f4 (patch)
treec17c48910b91d06273b467e1a6994089df9fb17e /src/common
parentgeneral: fix compilation on GCC 12 (diff)
downloadyuzu-a29ddcee40d78b1c1f7f64855331888777add4f4.tar
yuzu-a29ddcee40d78b1c1f7f64855331888777add4f4.tar.gz
yuzu-a29ddcee40d78b1c1f7f64855331888777add4f4.tar.bz2
yuzu-a29ddcee40d78b1c1f7f64855331888777add4f4.tar.lz
yuzu-a29ddcee40d78b1c1f7f64855331888777add4f4.tar.xz
yuzu-a29ddcee40d78b1c1f7f64855331888777add4f4.tar.zst
yuzu-a29ddcee40d78b1c1f7f64855331888777add4f4.zip
Diffstat (limited to 'src/common')
-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) {