Go to file
Richard Smith d6cc198d53 Improve fix for PR28739
Don't try to map an APSInt addend to an int64_t in pointer arithmetic before
bounds-checking it. This gives more consistent behavior (outside C++11, we
consistently use 2s complement semantics for both pointer and integer overflow
in constant expressions) and fixes some cases where in C++11 we would fail to
properly check for out-of-bounds pointer arithmetic (if the 2s complement
64-bit overflow landed us back in-bounds).

In passing, also fix some cases where we'd perform possibly-overflowing
arithmetic on CharUnits (which have a signed underlying type) during constant
expression evaluation.

llvm-svn: 293595
2017-01-31 02:23:02 +00:00
clang Improve fix for PR28739 2017-01-31 02:23:02 +00:00
clang-tools-extra Revert "Implement a new clang-tidy check that suggests users replace dynamic exception specifications with noexcept exception specifications." 2017-01-27 07:19:22 +00:00
compiler-rt [compiler-rt] Don't change g_tls_size after initialization. 2017-01-31 01:53:36 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc math: Add logb builtin 2017-01-18 03:14:10 +00:00
libcxx Revert "Adorn __call_once_proxy with `inline` and `_LIBCPP_INLINE_VISIBILITY`" 2017-01-31 01:26:09 +00:00
libcxxabi Fix ASAN failure in cxa_demangle 2017-01-27 20:32:16 +00:00
libunwind Revert "DWARF: convert error logs to _LIBUNWIND_LOG" 2017-01-27 02:26:52 +00:00
lld Make the test future proof. 2017-01-31 01:38:48 +00:00
lldb Switch HostInfoNetBSD::GetProgramFileSpec to sysctl(7) 2017-01-28 20:04:53 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm InferAddressSpaces: Rename constant 2017-01-31 02:17:41 +00:00
openmp Correct wrong comment in bug_nested_proxy_task.c 2017-01-30 09:51:02 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Update the documentation on how the packing transformation is implemented 2017-01-29 10:37:50 +00:00