[PATCH] D74830: [clang][Index] Fix the incomplete instantiations in libindex.
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 20 00:12:49 PST 2020
kadircet added inline comments.
================
Comment at: clang/lib/Index/IndexingContext.cpp:217
+ // Fallback to primary template if this is an incomplete specialization.
+ if (SD->getTemplateSpecializationKind() == TSK_Undeclared)
+ return SD->getSpecializedTemplate()->getTemplatedDecl();
----------------
maybe return templateddecl iff instantiationpattern is null ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74830/new/
https://reviews.llvm.org/D74830
More information about the cfe-commits
mailing list