[PATCH] Fix SROA creating invalid bitcasts between address spaces

Joey Gouly joey.gouly at arm.com
Tue Dec 3 07:17:15 PST 2013



================
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



More information about the llvm-commits mailing list