forked from OSchip/llvm-project
[clangd] Fix crash in hover
This commit is contained in:
parent
7a7334663c
commit
14e11005d1
|
@ -195,7 +195,7 @@ const NamedDecl *getDeclForComment(const NamedDecl *D) {
|
|||
return VTSD->getTemplateInstantiationPattern();
|
||||
if (auto *FD = D->getAsFunction())
|
||||
if (FD->isTemplateInstantiation())
|
||||
return FD->getTemplateSpecializationInfo()->getTemplate();
|
||||
return FD->getTemplateInstantiationPattern();
|
||||
return D;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue