PATCH: fix building invalid IR lowering initializer list

Nick Lewycky nlewycky at google.com
Mon Mar 16 16:00:39 PDT 2015


The attached patch fixes a case where we produce an invalid store where the
value type is not the same as the pointee type of the pointer. This occurs
when lowering to a global variable because the GV must have the type of a
pointer to its initializer, yet the initializer is not quite the same that
we use for the value. Fix it up by adding a cast.

Ben, I've cc'd you because I think this is a regression from your r231564.

Please review!

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150316/01242a6b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-init_list_glbl_type-1.patch
Type: text/x-patch
Size: 1601 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150316/01242a6b/attachment.bin>


More information about the cfe-commits mailing list