Skip to content

Commit

Permalink
add [[unlikely]] to check branch
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Nov 23, 2024
1 parent cd9cea1 commit 8b920b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixd/lib/Controller/CheckReturn.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define CheckReturn(x, Ret) \
({ \
decltype(x) temp = (x); \
if (!temp) { \
if (!temp) [[unlikely]] { \
return Ret; \
} \
temp; \
Expand Down

0 comments on commit 8b920b6

Please sign in to comment.