aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/IndexingContext.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-12-19 17:29:30 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-12-19 17:29:30 +0000
commitd7ebf3eead93232af7c7f0d30385a1f4c890f904 (patch)
treef6eef14e698c1870c84de65dee2ce0f4a9638b1b /tools/libclang/IndexingContext.cpp
parenteb34db715f1130ad7793fc0cc50c8191c2157c53 (diff)
Add a missing 'else'. Found by grep '} if'
No testcase because this did not affect correctness: a declaration can only be ClassTemplateDecl or a FunctionTemplateDecl, not both. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170565 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/IndexingContext.cpp')
-rw-r--r--tools/libclang/IndexingContext.cpp2
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();
}