]> granicus.if.org Git - clang/commitdiff
Remove unused but set variable.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 18 Feb 2012 11:35:28 +0000 (11:35 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 18 Feb 2012 11:35:28 +0000 (11:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150877 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 8e6b6c5c53c6c48d1286569f557f08d88e01ee55..c727e88adb85d7ba1bb3ed2b5c9c599a5abc2cf5 100644 (file)
@@ -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<VarDecl *, 4> 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;
     {