[msan] Update origin for the entire destination range on memory store.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 21 Jan 2015 13:21:31 +0000 (13:21 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 21 Jan 2015 13:21:31 +0000 (13:21 +0000)
commitdbc6b63128b2b8556a2bc2c84354000192203845
tree63f612aac69812e15c89fb9e668dc6368de325bf
parentdb8552c8340546d687c7f8c3127b845315eafde5
[msan] Update origin for the entire destination range on memory store.

Previously we always stored 4 bytes of origin at the destination address
even for 8-byte (and longer) stores.

This should fix rare missing, or incorrect, origin stacks in MSan reports.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226658 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/MemorySanitizer.cpp
test/Instrumentation/MemorySanitizer/store-long-origin.ll [new file with mode: 0644]