The element insertion code in scalar replacement doesn't handle incorrect
authorCameron Zwarich <zwarich@apple.com>
Sun, 23 Oct 2011 07:02:10 +0000 (07:02 +0000)
committerCameron Zwarich <zwarich@apple.com>
Sun, 23 Oct 2011 07:02:10 +0000 (07:02 +0000)
commit90747e34e6ca7162eaf8dde032649071045f161d
tree3845880746f6435db460b54e981f4ea1c5c29b5e
parent4fea38f7732bccd1781390aedcef2bbf87e25990
The element insertion code in scalar replacement doesn't handle incorrect
element types, even though the element extraction code does. It is surprising
that this bug has been here for so long. Fixes <rdar://problem/10318778>.

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