r185787 - Remove 'else' after 'return'

Craig Topper craig.topper at gmail.com
Sun Jul 7 21:24:47 PDT 2013


Author: ctopper
Date: Sun Jul  7 23:24:47 2013
New Revision: 185787

URL: http://llvm.org/viewvc/llvm-project?rev=185787&view=rev
Log:
Remove 'else' after 'return'

Modified:
    cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp

Modified: cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp?rev=185787&r1=185786&r2=185787&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp Sun Jul  7 23:24:47 2013
@@ -575,7 +575,7 @@ getDepthAndIndex(UnexpandedParameterPack
 static TemplateParameter makeTemplateParameter(Decl *D) {
   if (TemplateTypeParmDecl *TTP = dyn_cast<TemplateTypeParmDecl>(D))
     return TemplateParameter(TTP);
-  else if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D))
+  if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D))
     return TemplateParameter(NTTP);
 
   return TemplateParameter(cast<TemplateTemplateParmDecl>(D));





More information about the cfe-commits mailing list