Don't try to promote the same alloca twice. Fixes PR13916!
authorNick Lewycky <nicholas@mxc.ca>
Tue, 25 Sep 2012 21:15:50 +0000 (21:15 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 25 Sep 2012 21:15:50 +0000 (21:15 +0000)
commitc3f10e43fc4b1084bc109ff740d9ba4b6eaced0a
tree992ee824143c08c0e61cefc1a5a4dbe7be0cb880
parentba48ceb1a3802e20e781ef04ea2573ffae2ac414
Don't try to promote the same alloca twice. Fixes PR13916!

Chandler, it's not obvious that it's okay that this alloca gets into the list
twice to begin with. Please review and see whether this is the fix you really
want, but I wanted to get a fix checked in quickly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164634 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SROA.cpp
test/Transforms/SROA/basictest.ll