rnk added a comment.

Sorry for the delay, was trying to stay focused on debugging


================
Comment at: clang/include/clang/AST/Decl.h:1647
@@ +1646,3 @@
+  /// clears this list) needs to be a logically-const operation.
+  mutable std::unique_ptr<std::vector<PartialDiagnosticAt>> DeferredDiags;
+
----------------
Decl memory is pretty precious, I think you'll be better off with a map from 
Decl* to TinyPtrVector in the ASTContext. Just pass the ASTContext into 
takeDeferredDiags.


https://reviews.llvm.org/D23241



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

Reply via email to