]> granicus.if.org Git - clang/commitdiff
Revert "Remove some unused variables identified by Juergen Ributzka *I need to turn...
authorManuel Klimek <klimek@google.com>
Thu, 22 Aug 2013 12:12:05 +0000 (12:12 +0000)
committerManuel Klimek <klimek@google.com>
Thu, 22 Aug 2013 12:12:05 +0000 (12:12 +0000)
This reverts commit d01d0b63d87ac465f15ce1d6b56bf3faf4525769.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189003 91177308-0d34-0410-b5e6-96231b3b80d8

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

index dc82918c07f93755525416fe963ad9c492d7e685..1ab70475e53149a00dc5c4cc825e12c6aa6111bc 100644 (file)
@@ -938,6 +938,7 @@ 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 1d6a4d6909897d16097e3384f20400aa8e861d00..bed71a676f8a4eca15275528c480c278e462648b 100644 (file)
@@ -143,6 +143,7 @@ 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);