[cfe-commits] r151457 - in /cfe/trunk: lib/CodeGen/CGExprConstant.cpp lib/CodeGen/CodeGenModule.cpp lib/CodeGen/CodeGenModule.h test/CodeGenCXX/cxx0x-initializer-stdinitializerlist-startend.cpp test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp

Chris Lattner clattner at apple.com
Sat Feb 25 20:04:55 PST 2012


On Feb 25, 2012, at 12:51 PM, Sebastian Redl wrote:

> Author: cornedbee
> Date: Sat Feb 25 14:51:20 2012
> New Revision: 151457
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=151457&view=rev
> Log:
> CodeGen support for global variables of type std::initializer_list<X>.
> 
> This emits a backing array with internal linkage and fills it with data,
> then has the initializer_list point at the array. Dynamic initialization
> and global destructors are correctly supported.
> 
> What doesn't work is nested initializer_lists. I have no idea how to
> get them to work, either. However, these should be very rare, and so
> I'll just call it a known bug and declare generalized initializers
> DONE!

Sweet, release notes? :)

-Chris



More information about the cfe-commits mailing list