================
Comment at: lib/Transforms/Scalar/SROA.cpp:1432
@@ -1431,3 +1432,3 @@
if (Ptr->getType() != PointerTy)
Ptr = IRB.CreateBitCast(Ptr, PointerTy, "cast");
----------------
This line can also crash! I'll try get a test case.
http://llvm-reviews.chandlerc.com/D1764