llvm-project/clang/lib
Richard Smith d572f82e49 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
2011-12-02 00:30:33 +00:00
..
ARCMigrate [arcmt] Integrate GC __weak into property attributes even when we don't have 2011-11-28 02:04:36 +00:00
AST Add Microsoft mangling of constructors and destructors. Patch by Dmitry! 2011-12-01 09:55:00 +00:00
Analysis Teach the CFG builder how to properly destroy temporaries who 2011-11-15 15:29:30 +00:00
Basic When we're passing a vector with an illegal type through memory on x86-64, use byval so we're sure the backend does the right thing. Fixes va_arg with illegal vectors and an obscure ABI mismatch with __m64 vectors. 2011-12-02 00:11:43 +00:00
CodeGen Fix wrong-code bug when a const automatic variable of struct type has both a 2011-12-02 00:30:33 +00:00
Driver Driver/Darwin: Add ASAN runtime library link support. 2011-12-01 23:40:18 +00:00
Frontend Introduce the notion of name visibility into modules. For a given 2011-12-01 17:11:21 +00:00
FrontendTool Eliminate the -emit-module option, which emitted a module by parsing a 2011-11-29 22:42:06 +00:00
Headers Fix comment. 2011-11-28 20:05:27 +00:00
Index Change operator<< for raw_ostream and NamedDecl to take a reference instead of a pointer. 2011-10-14 18:45:37 +00:00
Lex Introduce the notion of name visibility into modules. For a given 2011-12-01 17:11:21 +00:00
Parse Revert most of r145372 for now. Lookahead beyond the ';' in a function 2011-11-30 23:45:35 +00:00
Rewrite Change ASTConsumer::HandleTopLevelDecl to return true for the parser to continue 2011-11-18 00:26:59 +00:00
Sema Introduce the notion of name visibility into modules. For a given 2011-12-01 17:11:21 +00:00
Serialization Implement name hiding for declarations deserialized from a non-visible 2011-12-01 22:20:10 +00:00
StaticAnalyzer [analyzer] Make KeychainAPI checker less aggressive. radar://10508828 2011-12-01 16:41:58 +00:00
CMakeLists.txt The ARC Migration Tool. All the credit goes to Argyrios and Fariborz 2011-06-15 23:25:17 +00:00
Makefile The ARC Migration Tool. All the credit goes to Argyrios and Fariborz 2011-06-15 23:25:17 +00:00