llvm-6502/lib
Evgeniy Stepanov d8313be410 ASan: use getTypeAllocSize instead of getTypeStoreSize.
This change replaces getTypeStoreSize with getTypeAllocSize in AddressSanitizer
instrumentation for stack allocations.

One case where old behaviour produced undesired results is an optimization in
InstCombine pass (PromoteCastOfAllocation), which can replace  alloca(T) with
alloca(S), where S has the same AllocSize, but a smaller StoreSize. Another
case is memcpy(long double => long double), where ASan will poison bytes 10-15
of a stack-allocated long double (StoreSize  10, AllocSize 16,
sizeof(long double) = 16).

See http://llvm.org/bugs/show_bug.cgi?id=12047 for more context.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151887 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-02 10:41:08 +00:00
..
Analysis
Archive
AsmParser
Bitcode BitstreamWriter: Change primary output buffer to be a SmallVector instead of an 2012-02-29 20:31:09 +00:00
CodeGen Grammar-o in function name. 2012-03-02 02:11:47 +00:00
DebugInfo
ExecutionEngine Fixed the 32-bit runtime dynamic loader to allocate 2012-03-01 00:15:29 +00:00
Linker
MC
Object [Object] 2012-03-01 22:19:54 +00:00
Support Switch FoldingSet over to the new hashing infrastructure. We might want 2012-03-01 23:18:44 +00:00
TableGen
Target Prevent obscure and incorrect tail-call optimization. 2012-03-02 02:50:46 +00:00
Transforms ASan: use getTypeAllocSize instead of getTypeStoreSize. 2012-03-02 10:41:08 +00:00
VMCore Rewrite LLVM's generalized support library for hashing to follow the API 2012-03-01 18:55:25 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile