Fix a crash in SROA. This was reported independently by Takumi and
authorChandler Carruth <chandlerc@gmail.com>
Tue, 25 Sep 2012 02:42:03 +0000 (02:42 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 25 Sep 2012 02:42:03 +0000 (02:42 +0000)
commit2603a1876967aebb2a8319dfbc9f58d049ff60e7
treee3ac857dd06cc12db60d395bbdc08b1146d7e826
parent97d5cf05eb93d7efc4ab3de7948741957d9e5059
Fix a crash in SROA. This was reported independently by Takumi and
David (I think), but I would appreciate folks verifying that this fixes
the big crasher.

I'm still working on a reduced test case, but because this was causing
problems I wanted to get the fix checked in quickly.

llvm-svn: 164585
llvm/lib/Transforms/Scalar/SROA.cpp