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 | d572f82e490b5dd4e0578ca3420004ecd97969cb (patch) | |
tree | b952642c42855b3fd9e3bf9dda29373b8b27bc8d /clang/lib/Lex/ModuleMap.cpp | |
parent | 3aac38e90f1151f31fecf479884a9f9f45d9da32 (diff) | |
download | llvm-d572f82e490b5dd4e0578ca3420004ecd97969cb.zip llvm-d572f82e490b5dd4e0578ca3420004ecd97969cb.tar.gz llvm-d572f82e490b5dd4e0578ca3420004ecd97969cb.tar.bz2 |
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.
llvm-svn: 145654
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions