llvm-project/clang/include
Vedant Kumar 10c3102071 [ubsan] Diagnose invalid uses of builtins (clang)
On some targets, passing zero to the clz() or ctz() builtins has undefined
behavior. I ran into this issue while debugging UB in __hash_table from libcxx:
the bug I was seeing manifested itself differently under -O0 vs -Os, due to a
UB call to clz() (see: libcxx/r304617).

This patch introduces a check which can detect UB calls to builtins.

llvm.org/PR26979

Differential Revision: https://reviews.llvm.org/D34590

llvm-svn: 309459
2017-07-29 00:19:51 +00:00
..
clang [ubsan] Diagnose invalid uses of builtins (clang) 2017-07-29 00:19:51 +00:00
clang-c [AArch64] Add support for __builtin_ms_va_list on aarch64 2017-07-17 20:49:45 +00:00
CMakeLists.txt