From 909eebc9acd38e4706a049ef8bf463f253fd18ea Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Wed, 19 Dec 2012 17:29:30 +0000 Subject: [PATCH] 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. llvm-svn: 170565 --- clang/tools/libclang/IndexingContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/tools/libclang/IndexingContext.cpp b/clang/tools/libclang/IndexingContext.cpp index 8f71029..3a73aee 100644 --- a/clang/tools/libclang/IndexingContext.cpp +++ b/clang/tools/libclang/IndexingContext.cpp @@ -827,7 +827,7 @@ IndexingContext::getEntityContainer(const Decl *D) const { if (const ClassTemplateDecl *ClassTempl = dyn_cast(D)) { DC = ClassTempl->getTemplatedDecl(); - } if (const FunctionTemplateDecl * + } else if (const FunctionTemplateDecl * FuncTempl = dyn_cast(D)) { DC = FuncTempl->getTemplatedDecl(); } -- 2.7.4