Fix assertion in CreateBitcast following SROA logic

Pedro Ferreira via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 7 03:20:40 PST 2015


Hi all,

The attached patch fixes an assertion we triggered in the BitCast 
constructor when SROA tried to bitcast a pointer across namespaces.
Instead, check if the type being cast crosses namespaces and use the 
appropriate call.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SROA.cpp.patch
Type: text/x-patch
Size: 476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151207/2123d794/attachment.bin>


More information about the llvm-commits mailing list