Fix an assymmetry between ConvertScalar_ExtractValue and ConvertScalar_InsertValue...
authorCameron Zwarich <zwarich@apple.com>
Wed, 8 Jun 2011 22:08:31 +0000 (22:08 +0000)
committerCameron Zwarich <zwarich@apple.com>
Wed, 8 Jun 2011 22:08:31 +0000 (22:08 +0000)
commit0398d6135daef709f80837e457a75dc2e1c2aab7
treebc9103f763c7e3acc771c832187030d59ee66f12
parent69b9044c668dfb92038385a96c030778de64edfd
Fix an assymmetry between ConvertScalar_ExtractValue and ConvertScalar_InsertValue. The
former was using the size of the entire alloca, whereas the latter was correctly using
the allocated size of the immediate type being converted (which may differ from the size
of the alloca). This fixes PR10082.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132759 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp
test/Transforms/ScalarRepl/2011-06-08-VectorExtractValue.ll [new file with mode: 0644]