[cfe-commits] r116504 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Oct 14 13:14:21 PDT 2010
Author: akirtzidis
Date: Thu Oct 14 15:14:21 2010
New Revision: 116504
URL: http://llvm.org/viewvc/llvm-project?rev=116504&view=rev
Log:
Don't add the injected class name to the redeclarations chain; the chain should contain actual redeclarations, not implicits.
As a bonus, now we don't deserialize it unless we need it.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=116504&r1=116503&r2=116504&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Thu Oct 14 15:14:21 2010
@@ -6056,7 +6056,9 @@
CurContext, Record->getLocation(),
Record->getIdentifier(),
Record->getTagKeywordLoc(),
- Record);
+ /*PrevDecl=*/0,
+ /*DelayTypeCreation=*/true);
+ Context.getTypeDeclType(InjectedClassName, Record);
InjectedClassName->setImplicit();
InjectedClassName->setAccess(AS_public);
if (ClassTemplateDecl *Template = Record->getDescribedClassTemplate())
More information about the cfe-commits
mailing list