[cfe-commits] r170565 - /cfe/trunk/tools/libclang/IndexingContext.cpp

Dmitri Gribenko gribozavr at gmail.com
Wed Dec 19 09:29:30 PST 2012


Author: gribozavr
Date: Wed Dec 19 11:29:30 2012
New Revision: 170565

URL: http://llvm.org/viewvc/llvm-project?rev=170565&view=rev
Log:
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.

Modified:
    cfe/trunk/tools/libclang/IndexingContext.cpp

Modified: cfe/trunk/tools/libclang/IndexingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/IndexingContext.cpp?rev=170565&r1=170564&r2=170565&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/IndexingContext.cpp (original)
+++ cfe/trunk/tools/libclang/IndexingContext.cpp Wed Dec 19 11:29:30 2012
@@ -827,7 +827,7 @@
 
   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();
   }





More information about the cfe-commits mailing list