aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/ExtractAPI/API.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2022-03-24 09:27:03 -0400
committerLouis Dionne <ldionne.2@gmail.com>2022-03-29 11:46:47 -0400
commitf0799465b2cc25738d7164774926a8ba3a63b98d (patch)
treee18ffc3d1b45e0aae1960feb46ea877e00dcc171 /clang/lib/ExtractAPI/API.cpp
parent95a2527261443729a398e16bc7dc6dd325fc2691 (diff)
downloadllvm-f0799465b2cc25738d7164774926a8ba3a63b98d.zip
llvm-f0799465b2cc25738d7164774926a8ba3a63b98d.tar.gz
llvm-f0799465b2cc25738d7164774926a8ba3a63b98d.tar.bz2
[libc++] Use __builtin_expect and __builtin_assume in _LIBCPP_ASSERT
Since we expect the condition to be true most of the time, we might as well tell the compiler. And when assertions are disabled, we might as well tell the compiler that it's allowed to assume that the condition holds. Differential Revision: https://reviews.llvm.org/D122397
Diffstat (limited to 'clang/lib/ExtractAPI/API.cpp')
0 files changed, 0 insertions, 0 deletions