aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-08-02 21:44:23 +0000
committerChris Lattner <sabre@nondot.org>2011-08-02 21:44:23 +0000
commit9e6a1caf18565849cc7bec265bcb0b8af4e1d93a (patch)
treefe47a898ffd937a30b419e2c59f8ebc583d3da9f /lib/CodeGen/BackendUtil.cpp
parentfc6142779f42058b4a39a29b6209a01a6de9fe7c (diff)
disable array bounds overflow warning for cases where an array
has a single element. This disables the warning in cases where there is a clear bug, but this is really rare (who uses arrays with one element?) and it also silences a large class of false positive issues with C89 code that is using tail padding in structs. A better version of this patch would detect when an array is in a tail position in a struct, but at least patch fixes the huge false positives that are hitting postgres and other code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions