]> granicus.if.org Git - clang/commitdiff
Remove some unused variables identified by Juergen Ributzka *I need to turn on this...
authorFaisal Vali <faisalv@yahoo.com>
Thu, 22 Aug 2013 02:13:38 +0000 (02:13 +0000)
committerFaisal Vali <faisalv@yahoo.com>
Thu, 22 Aug 2013 02:13:38 +0000 (02:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188979 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseExprCXX.cpp
lib/Sema/SemaLambda.cpp

index 1ab70475e53149a00dc5c4cc825e12c6aa6111bc..dc82918c07f93755525416fe963ad9c492d7e685 100644 (file)
@@ -938,7 +938,6 @@ ExprResult Parser::ParseLambdaExpressionAfterIntroducer(
 
     
     if (Tok.isNot(tok::r_paren)) {
-      sema::LambdaScopeInfo *LSI = Actions.getCurLambda(); 
       if (getLangOpts().CPlusPlus1y)
         Actions.RecordParsingTemplateParameterDepth(TemplateParameterDepth);
       ParseParameterDeclarationClause(D, Attr, ParamInfo, EllipsisLoc);
index bed71a676f8a4eca15275528c480c278e462648b..1d6a4d6909897d16097e3384f20400aa8e861d00 100644 (file)
@@ -143,7 +143,6 @@ ParmVarDecl *Sema::ActOnLambdaAutoParameter(ParmVarDecl *PVD) {
       AutoParameterPosition,  // our template param index 
       /* Identifier*/ 0, false, PVD->isParameterPack());
   LSI->AutoTemplateParams.push_back(TemplateParam);
-  QualType AutoTy = PVD->getType();
   // Now replace the 'auto' in the function parameter with this invented 
   // template type parameter.
   QualType TemplParamType = QualType(TemplateParam->getTypeForDecl(), 0);