[msan] Fix handling of array types.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 31 Jul 2014 11:02:27 +0000 (11:02 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 31 Jul 2014 11:02:27 +0000 (11:02 +0000)
commit5997feb7dcb212cc4d60896f5855e6a87e18a1b4
tree1ee3d684c4a843a963dcc7f7512e8e8e5136d925
parent11887924806547ec02e0838644afa80c69084fa8
[msan] Fix handling of array types.

Switch array type shadow from a single integer to
an array of integers (i.e. make it per-element).
This simplifies instrumentation of extractvalue and fixes PR20493.

llvm-svn: 214398
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
llvm/test/Instrumentation/MemorySanitizer/array_types.ll [new file with mode: 0644]