]> granicus.if.org Git - clang/commit
Bug fix: do not emit static const local variables with mutable members
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 17 Feb 2012 06:48:11 +0000 (06:48 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 17 Feb 2012 06:48:11 +0000 (06:48 +0000)
commita9b21d22bb9337649723a8477b5cb15f83451e7d
treec6d90f7d3c162b2c7713add536ff8f1320ebc7ee
parente15c71236252c21a77c8a406246053e1cbb63ffa
Bug fix: do not emit static const local variables with mutable members
as constants.

Refactor and simplify all the separate checks for whether a type can be
emitted as a constant.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150793 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
test/CodeGenCXX/static-mutable.cpp [new file with mode: 0644]