Fix a secondary bug I introduced while fixing the first part of PR14478.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 17 Dec 2012 14:03:01 +0000 (14:03 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 17 Dec 2012 14:03:01 +0000 (14:03 +0000)
commitcacda256a15f37f6bc70de8a9494caa44708b764
treedb850f4b69ec36604871d2c774fd64e9dec3ff1d
parentc104bf2769ec2048a7e12d41e3a271969490379d
Fix a secondary bug I introduced while fixing the first part of PR14478.

The first half of fixing this bug was actually in r170328, but was
entirely coincidental. It did however get me to realize the nature of
the bug, and adapt the test case to test more interesting behavior. In
turn, that uncovered the rest of the bug which I've fixed here.

This should fix two new asserts that showed up in the vectorize nightly
tester.

llvm-svn: 170333
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/Transforms/SROA/vector-promotion.ll