From 8b920b60ccab8d96a135382f438997df221b6316 Mon Sep 17 00:00:00 2001 From: Yingchi Long Date: Sat, 23 Nov 2024 13:57:09 +0800 Subject: [PATCH] add [[unlikely]] to check branch --- nixd/lib/Controller/CheckReturn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixd/lib/Controller/CheckReturn.h b/nixd/lib/Controller/CheckReturn.h index 011eefc51..a4331bbb1 100644 --- a/nixd/lib/Controller/CheckReturn.h +++ b/nixd/lib/Controller/CheckReturn.h @@ -6,7 +6,7 @@ #define CheckReturn(x, Ret) \ ({ \ decltype(x) temp = (x); \ - if (!temp) { \ + if (!temp) [[unlikely]] { \ return Ret; \ } \ temp; \