rsmith added inline comments.

================
Comment at: clang/lib/Serialization/ASTReaderDecl.cpp:1790
+    // set fake one.
+    D->DefinitionData = DD;
   ReadCXXDefinitionData(*DD, D);
----------------
I think it would make sense to "claim" the definition more eagerly here, by 
also updating `Canon->DefinitionData` in this case, prior to reading the 
definition data (and in the case where we already have a canonical definition, 
pointing `D->DefinitionData` at that eagerly).


https://reviews.llvm.org/D43494



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to