[cfe-commits] [PATCH] Use static storage duration for file-scope compound literals in C++ dynamic initializers

Chandler Carruth chandlerc at google.com
Tue Nov 22 14:39:20 PST 2011

On Tue, Nov 22, 2011 at 2:30 PM, Richard Smith <richard at metafoo.co.uk>wrote:

> Hi,
> The attached patch fixes the compound-literals-in-C++ extension to always
> use
> static storage duration for file-scope compound literals, as per GCC's
> documentation for this extension. Currently we only give them static
> storage
> duration if the initializer in which they appear is a constant.
> OK to commit?

It's not clear to me why we need the helper function? Otherwise this looks
fine to me...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111122/dbfe0736/attachment.html>

More information about the cfe-commits mailing list