[msan] Fix handling of byval arguments with large alignment.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 17 Oct 2014 23:29:44 +0000 (23:29 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 17 Oct 2014 23:29:44 +0000 (23:29 +0000)
commitc83c81a62efd1fc8312630a9202761b785ac7eb2
tree2a553bc7cf6d1b1b5f951e3b96f798ff706e53eb
parent185a992dcf94c2fe7966484b705d586d1828d5f7
[msan] Fix handling of byval arguments with large alignment.

MSan param-tls slots are 8-byte aligned. This change clips
alignment of memcpy into param-tls to 8.

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