From: Benjamin Kramer Date: Sat, 18 Feb 2012 11:35:28 +0000 (+0000) Subject: Remove unused but set variable. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b1d32bf63bce17503a979bb99fe008cabc05a0e;p=clang Remove unused but set variable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150877 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 8e6b6c5c53..c727e88adb 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -9582,14 +9582,11 @@ static ExprResult captureInLambda(Sema &S, LambdaScopeInfo *LSI, // the source array, and other clients (e.g., CodeGen) will perform // the necessary iteration with these index variables. SmallVector IndexVariables; - bool InitializingArray = false; QualType BaseType = FieldType; QualType SizeType = S.Context.getSizeType(); LSI->ArrayIndexStarts.push_back(LSI->ArrayIndexVars.size()); while (const ConstantArrayType *Array = S.Context.getAsConstantArrayType(BaseType)) { - InitializingArray = true; - // Create the iteration variable for this array index. IdentifierInfo *IterationVarName = 0; {