diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2022-03-24 09:27:03 -0400 |
---|---|---|
committer | Louis Dionne <ldionne.2@gmail.com> | 2022-03-29 11:46:47 -0400 |
commit | f0799465b2cc25738d7164774926a8ba3a63b98d (patch) | |
tree | e18ffc3d1b45e0aae1960feb46ea877e00dcc171 /clang/lib/ExtractAPI/API.cpp | |
parent | 95a2527261443729a398e16bc7dc6dd325fc2691 (diff) | |
download | llvm-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