diff options
-rw-r--r-- | tools/libclang/IndexingContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libclang/IndexingContext.cpp b/tools/libclang/IndexingContext.cpp index 8f7102911e..3a73aee59f 100644 --- a/tools/libclang/IndexingContext.cpp +++ b/tools/libclang/IndexingContext.cpp @@ -827,7 +827,7 @@ IndexingContext::getEntityContainer(const Decl *D) const { if (const ClassTemplateDecl *ClassTempl = dyn_cast<ClassTemplateDecl>(D)) { DC = ClassTempl->getTemplatedDecl(); - } if (const FunctionTemplateDecl * + } else if (const FunctionTemplateDecl * FuncTempl = dyn_cast<FunctionTemplateDecl>(D)) { DC = FuncTempl->getTemplatedDecl(); } |