[PATCH] D40901: Refactor lazy loading of template specializations. NFC

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 8 14:52:15 PST 2017


rsmith accepted this revision.
rsmith added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/AST/DeclTemplate.cpp:188-189
+  // redeclarations of this template.
+  //
+  // FIXME: Avoid walking the entire redeclaration chain here.
+  CommonBase *CommonBasePtr = getMostRecentDecl()->getCommonPtr();
----------------
You can remove this `FIXME`:  `getMostRecentDecl()` doesn't walk the redeclaration chain any more.


https://reviews.llvm.org/D40901





More information about the cfe-commits mailing list