Go to file
Yichao Yu a18b0b1817 Fix implicit null check with negative offset
Summary:
It seems that negative offset was accidentally allowed in D17967.
AFAICT small negative offset should be valid (always raise segfault) on all archs that I'm aware of (especially x86, which is the only one with this optimization enabled) and such case can be useful when loading hiden metadata from an object.

However, like the positive side, it should only be done within a certain limit.
For now, use the same limit on the positive side for the negative side.
A separate option can be added if needs appear.

Reviewers: mcrosier, skatkov

Reviewed By: skatkov

Subscribers: sanjoy, llvm-commits

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

llvm-svn: 315991
2017-10-17 11:47:36 +00:00
clang [CodeGen] Refine generation of TBAA info for bit-field lvalues 2017-10-17 11:20:19 +00:00
clang-tools-extra [change-namespace] do not change type locs in defaulted functions. 2017-10-16 08:20:10 +00:00
compiler-rt [XRay][compiler-rt] Always place the CPU record first for every buffer 2017-10-17 10:33:24 +00:00
debuginfo-tests Revert r313600 due to bot failures on Green Dragon. 2017-09-19 14:51:37 +00:00
libclc travis: enable checks of nvptx libraries 2017-10-10 18:10:25 +00:00
libcxx Fix last_write_time.pass.cpp to work with clang-3.9 and earlier 2017-10-15 21:52:53 +00:00
libcxxabi Fix ASAN build with older compiler-rt versions. 2017-09-14 22:37:34 +00:00
libunwind libunwind: document tested FreeBSD configs and sort OS list 2017-10-14 17:04:04 +00:00
lld Fix shared build of liblldCommon.so on Linux 2017-10-17 10:39:27 +00:00
lldb Reverting r315966 - it caused a build failure on an ubuntu x android bot. 2017-10-17 03:13:39 +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 implicit null check with negative offset 2017-10-17 11:47:36 +00:00
openmp KMP_HW_SUBSET vs KMP_PLACE_THREADS rival envirables fix 2017-10-06 19:23:19 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [Polly] Add XFAIL to large-numbers-in-boundary-context.ll 2017-10-16 15:12:39 +00:00