[cfe-commits] r144264 - /cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp

David Blaikie dblaikie at gmail.com
Wed Nov 9 21:42:04 PST 2011


Author: dblaikie
Date: Wed Nov  9 23:42:04 2011
New Revision: 144264

URL: http://llvm.org/viewvc/llvm-project?rev=144264&view=rev
Log:
Removing unused initialization.

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

Modified: cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp?rev=144264&r1=144263&r2=144264&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp Wed Nov  9 23:42:04 2011
@@ -1038,8 +1038,7 @@
   LocalInstantiationScope Scope(SemaRef, MergeWithParentScope);
 
   SmallVector<ParmVarDecl *, 4> Params;
-  TypeSourceInfo *TInfo = D->getTypeSourceInfo();
-  TInfo = SubstFunctionType(D, Params);
+  TypeSourceInfo *TInfo = SubstFunctionType(D, Params);
   if (!TInfo)
     return 0;
   QualType T = TInfo->getType();





More information about the cfe-commits mailing list