================
@@ -1532,12 +1533,17 @@ DiagnosticsEngine &ASTContext::getDiagnostics() const {
}
AttrVec& ASTContext::getDeclAttrs(const Decl *D) {
+ if (LastDeclAttrsDecl == D)
+ return *LastDeclAttrs;
----------------
zmodem wrote:
Maybe `assert(LastDeclAttrs != nullptr && LastDeclAttrs == DeclAttrs[D])` here
to ensure cache consistency?
https://github.com/llvm/llvm-project/pull/226610
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits