r188979 - Remove some unused variables identified by Juergen Ributzka *I need to turn on this warning in Visual C++ - sorry!*
Faisal Vali
faisalv at yahoo.com
Wed Aug 21 19:13:38 PDT 2013
Author: faisalv
Date: Wed Aug 21 21:13:38 2013
New Revision: 188979
URL: http://llvm.org/viewvc/llvm-project?rev=188979&view=rev
Log:
Remove some unused variables identified by Juergen Ributzka *I need to turn on this warning in Visual C++ - sorry!*
Modified:
cfe/trunk/lib/Parse/ParseExprCXX.cpp
cfe/trunk/lib/Sema/SemaLambda.cpp
Modified: cfe/trunk/lib/Parse/ParseExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseExprCXX.cpp?rev=188979&r1=188978&r2=188979&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseExprCXX.cpp (original)
+++ cfe/trunk/lib/Parse/ParseExprCXX.cpp Wed Aug 21 21:13:38 2013
@@ -938,7 +938,6 @@ ExprResult Parser::ParseLambdaExpression
if (Tok.isNot(tok::r_paren)) {
- sema::LambdaScopeInfo *LSI = Actions.getCurLambda();
if (getLangOpts().CPlusPlus1y)
Actions.RecordParsingTemplateParameterDepth(TemplateParameterDepth);
ParseParameterDeclarationClause(D, Attr, ParamInfo, EllipsisLoc);
Modified: cfe/trunk/lib/Sema/SemaLambda.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLambda.cpp?rev=188979&r1=188978&r2=188979&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLambda.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLambda.cpp Wed Aug 21 21:13:38 2013
@@ -143,7 +143,6 @@ ParmVarDecl *Sema::ActOnLambdaAutoParame
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);
More information about the cfe-commits
mailing list