diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-02 00:30:33 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-02 00:30:33 +0000 |
commit | 4bb6686274c292669bac9e658b3c210a317ee61a (patch) | |
tree | 21502cdd83ab25578ad044078d0f84f96f9eab08 /include/clang/Lex/ModuleMap.h | |
parent | b87699353a1a802f69e85ae2a125300de423ea09 (diff) |
Fix wrong-code bug when a const automatic variable of struct type has both a
mutable member and a constant initializer. We'd previously promoted such
variables to global constants, resulting in nasal demons if the mutable member
was modified.
This is only a temporary fix. The subtle interplay between isConstantInitializer
and CGExprConstant is very bug-prone; there are some other issues in this area
which I will be addressing in subsequent, more major reworking of this code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/ModuleMap.h')
0 files changed, 0 insertions, 0 deletions