[PATCH] D60432: [clang][ASTContext] Simplify caching for declaration-related comments

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 9 08:17:44 PDT 2019


arphaman added inline comments.


================
Comment at: clang/lib/AST/ASTContext.cpp:372
   D = adjustDeclToTemplate(D);
+  const Decl* CanonicalDecl = D->getCanonicalDecl();
 
----------------
Why are we now checking for the canonical declaration instead of `D` as before?


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60432/new/

https://reviews.llvm.org/D60432





More information about the cfe-commits mailing list