fix PR17635: false positive with packed structures
authorNuno Lopes <nunoplopes@sapo.pt>
Thu, 24 Oct 2013 09:17:24 +0000 (09:17 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Thu, 24 Oct 2013 09:17:24 +0000 (09:17 +0000)
commit5e1d0d39db5fefe013f58c124a94694f96bce2f1
treeb4dcda463d9c83c54bd43c0324baf253d3f03287
parent2f21452ba1ee5bde8fee438b4cf1a1ce95beb6ca
fix PR17635: false positive with packed structures
LLVM optimizers may widen accesses to packed structures that overflow the structure itself, but should be in bounds up to the alignment of the object

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193317 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/MemoryBuiltins.h
lib/Analysis/MemoryBuiltins.cpp
lib/Transforms/Instrumentation/BoundsChecking.cpp
test/Instrumentation/BoundsChecking/simple-32.ll [new file with mode: 0644]