Go to file
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-tools-extra [clang-tidy] Expand readability-redundant-function-ptr-dereference test 2017-07-28 12:46:08 +00:00
compiler-rt Try to fix asan test on sanitizer-windows 2017-07-28 21:43:23 +00:00
debuginfo-tests Add a test for PR33166. 2017-05-25 19:33:16 +00:00
libclc add __kernel_exec macros 2017-07-28 03:39:03 +00:00
libcxx [libcxx] [test] Remove an unused local typedef in enable_shared_from_this.pass.cpp. 2017-07-27 21:16:37 +00:00
libcxxabi [demangler] Fix some overzealous -Wreturn-type errors 2017-07-28 01:35:14 +00:00
libunwind Partial fix for PR33858 2017-07-26 18:13:57 +00:00
lld Fix the order of section that are not on an order file. 2017-07-28 15:36:15 +00:00
lldb [CMake] Add SharingPtr.h to the Framework header list 2017-07-28 20:27:38 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm Fix update_llc_test_checks.py ARM parsing 2017-07-28 23:58:24 +00:00
openmp Fix comments and build messages concerning TSX 2017-07-28 19:05:17 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [test] Add test case for -polly-simplify. NFC. 2017-07-29 00:06:06 +00:00