aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SplitKit.cpp
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-01-21 16:48:29 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-01-21 16:48:29 +0000
commit844f5828e946b8db76e1b95b1e0d04d39d4411ef (patch)
treee2416cdaa114283e7c42ec5fb3ef07284e206515 /llvm/lib/CodeGen/SplitKit.cpp
parent84adb5d1d0c5bae386fea67d1d5293dc4cf43b7a (diff)
downloadllvm-844f5828e946b8db76e1b95b1e0d04d39d4411ef.zip
llvm-844f5828e946b8db76e1b95b1e0d04d39d4411ef.tar.gz
llvm-844f5828e946b8db76e1b95b1e0d04d39d4411ef.tar.bz2
[msan] Fix origins in realloc.
Fixes 2 issues in origins arising from realloc() calls: * In the in-place grow case origin for the new memory is not set at all. * In the copy-realloc case __msan_memcpy is used, which unwinds stack from inside the MSan runtime. This does not generally work (as we may be built w/o frame pointers), and produces "bad" stack trace anyway, with several uninteresting (internal) frames on top. This change also makes realloc() honor "zeroise" and "poison_in_malloc" flags. See https://code.google.com/p/memory-sanitizer/issues/detail?id=73. llvm-svn: 226674
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
0 files changed, 0 insertions, 0 deletions