[cfe-commits] r116975 - /cfe/trunk/lib/AST/DeclCXX.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Wed Oct 20 16:48:43 PDT 2010


Author: akirtzidis
Date: Wed Oct 20 18:48:42 2010
New Revision: 116975

URL: http://llvm.org/viewvc/llvm-project?rev=116975&view=rev
Log:
When implicit members are added to a C++ record, notify the serializer so that a chained PCH writes the definition again.
Thanks to Doug for the hint!

Modified:
    cfe/trunk/lib/AST/DeclCXX.cpp

Modified: cfe/trunk/lib/AST/DeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclCXX.cpp?rev=116975&r1=116974&r2=116975&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclCXX.cpp (original)
+++ cfe/trunk/lib/AST/DeclCXX.cpp Wed Oct 20 18:48:42 2010
@@ -363,6 +363,13 @@
   }
   
   if (D->isImplicit()) {
+    // Notify the serializer that an implicit member changed the definition.
+    // A chained PCH will write the whole definition again.
+    // FIXME: Make a notification about the specific change (through a listener
+    // interface) so the changes that the serializer records are more
+    // fine grained.
+    data().Definition->setChangedSinceDeserialization(true);
+
     if (CXXConstructorDecl *Constructor = dyn_cast<CXXConstructorDecl>(D)) {
       // If this is the implicit default constructor, note that we have now
       // declared it.





More information about the cfe-commits mailing list