r194190 - Unbreak the Clang -Werror build by removing some unused variables
David Blaikie
dblaikie at gmail.com
Wed Nov 6 21:52:35 PST 2013
Author: dblaikie
Date: Wed Nov 6 23:52:35 2013
New Revision: 194190
URL: http://llvm.org/viewvc/llvm-project?rev=194190&view=rev
Log:
Unbreak the Clang -Werror build by removing some unused variables
Modified:
cfe/trunk/lib/Sema/SemaExprCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=194190&r1=194189&r2=194190&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Wed Nov 6 23:52:35 2013
@@ -5882,12 +5882,9 @@ static void CheckLambdaCaptures(Expr *co
// - a generic-or-non-generic lambda call operator that is enclosed
// within a non-dependent context.
unsigned FunctionScopeIndexOfCapturableLambda = 0;
- CXXMethodDecl *NearestCapturableCallOp = 0;
- if (NearestCapturableCallOp =
- GetInnermostEnclosingCapturableLambda(
- S.FunctionScopes,
- FunctionScopeIndexOfCapturableLambda,
- S.CurContext, Var, S)) {
+ if (GetInnermostEnclosingCapturableLambda(
+ S.FunctionScopes, FunctionScopeIndexOfCapturableLambda,
+ S.CurContext, Var, S)) {
MarkVarDeclODRUsed(Var, VarExpr->getExprLoc(),
S, &FunctionScopeIndexOfCapturableLambda);
}
@@ -5918,11 +5915,9 @@ static void CheckLambdaCaptures(Expr *co
if (CurrentLSI->hasPotentialThisCapture()) {
unsigned FunctionScopeIndexOfCapturableLambda = 0;
- if (CXXMethodDecl *NearestCapturableCallOp =
- GetInnermostEnclosingCapturableLambda(
- S.FunctionScopes,
- FunctionScopeIndexOfCapturableLambda,
- S.CurContext, /*0 is 'this'*/ 0, S)) {
+ if (GetInnermostEnclosingCapturableLambda(
+ S.FunctionScopes, FunctionScopeIndexOfCapturableLambda,
+ S.CurContext, /*0 is 'this'*/ 0, S)) {
S.CheckCXXThisCapture(CurrentLSI->PotentialThisCaptureLocation,
/*Explicit*/false, /*BuildAndDiagnose*/true,
&FunctionScopeIndexOfCapturableLambda);
More information about the cfe-commits
mailing list