]> granicus.if.org Git - clang/commit
When determining whether we can make a declaration into a global
authorDouglas Gregor <dgregor@apple.com>
Fri, 13 May 2011 01:05:07 +0000 (01:05 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 13 May 2011 01:05:07 +0000 (01:05 +0000)
commit2bb110125e0e5adb7c1c65d12adfa34151ca1c47
tree1d4cb0d79515f17727be015af2aa4d6a2936f95d
parent7880bc34fd5818d8f1eb827fdce136c1de643ab5
When determining whether we can make a declaration into a global
constant, also consider whether it's a class type that has any mutable
fields. If so, it can't be a global constant.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131276 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclCXX.h
lib/AST/DeclCXX.cpp
lib/CodeGen/CGBlocks.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriter.cpp
test/CodeGenCXX/global-llvm-constant.cpp