]> granicus.if.org Git - clang/commitdiff
Remove dead variable caught by GCC.
authorNick Lewycky <nicholas@mxc.ca>
Mon, 2 May 2011 01:06:15 +0000 (01:06 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 2 May 2011 01:06:15 +0000 (01:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130676 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/DeclPrinter.cpp

index bc1e899a6104327a5e58ac70dd7b26627921c130..2fd88d7c808d8355b541b09597616e0e9685a5dc 100644 (file)
@@ -695,9 +695,6 @@ void DeclPrinter::VisitTemplateDecl(const TemplateDecl *D) {
     if (const TemplateTypeParmDecl *TTP =
           dyn_cast<TemplateTypeParmDecl>(Param)) {
 
-      QualType ParamType =
-        Context.getTypeDeclType(const_cast<TemplateTypeParmDecl*>(TTP));
-
       if (TTP->wasDeclaredWithTypename())
         Out << "typename ";
       else