]> granicus.if.org Git - clang/commit
Use static storage duration for file-scope compound literals, even when they
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 22 Nov 2011 22:48:32 +0000 (22:48 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 22 Nov 2011 22:48:32 +0000 (22:48 +0000)
commit7401cf524cdb7aad4951d8727d280f8b271af5a2
tree284aeb93e42fdfb64ef3bb150e36b27196c8c253
parent6300f5b4382d5128c9346a4d4f05e7bac2e3d771
Use static storage duration for file-scope compound literals, even when they
appear in non-constant initializers in C++.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145087 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprConstant.cpp
lib/CodeGen/CodeGenModule.h
test/CodeGenCXX/compound-literals.cpp