From: David Blaikie Date: Thu, 10 Nov 2011 05:42:04 +0000 (+0000) Subject: Removing unused initialization. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64b4b43a23aa8b8009470e3cc451333f623d7d58;p=clang Removing unused initialization. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144264 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index 4cde69f087..ec5ccd3f8a 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -1038,8 +1038,7 @@ Decl *TemplateDeclInstantiator::VisitFunctionDecl(FunctionDecl *D, LocalInstantiationScope Scope(SemaRef, MergeWithParentScope); SmallVector Params; - TypeSourceInfo *TInfo = D->getTypeSourceInfo(); - TInfo = SubstFunctionType(D, Params); + TypeSourceInfo *TInfo = SubstFunctionType(D, Params); if (!TInfo) return 0; QualType T = TInfo->getType();