From 3abc76856fbd33d9af5a5c9bf8dfee596658df1b Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 14 Dec 2012 06:53:58 +0000 Subject: [PATCH] Remove code from Sema::ActOnStartOfFunctionTemplateDef that duplicates what Sema::ActOnStartOfFunctionDef is already doing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170179 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaTemplate.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index d4a4b3d0db..3c083c3b87 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -5629,13 +5629,7 @@ Decl *Sema::ActOnStartOfFunctionTemplateDef(Scope *FnBodyScope, D.setFunctionDefinitionKind(FDK_Definition); Decl *DP = HandleDeclarator(ParentScope, D, TemplateParameterLists); - if (FunctionTemplateDecl *FunctionTemplate - = dyn_cast_or_null(DP)) - return ActOnStartOfFunctionDef(FnBodyScope, - FunctionTemplate->getTemplatedDecl()); - if (FunctionDecl *Function = dyn_cast_or_null(DP)) - return ActOnStartOfFunctionDef(FnBodyScope, Function); - return 0; + return ActOnStartOfFunctionDef(FnBodyScope, DP); } /// \brief Strips various properties off an implicit instantiation -- 2.50.1