aboutsummaryrefslogtreecommitdiff
path: root/clang
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-02-18 11:35:28 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-02-18 11:35:28 +0000
commit26538e8cc5d4aec1daf6243a1729fe2e99d73447 (patch)
treed26a00197950b295a3e2401f99133daa1a134a27 /clang
parent4d9547332c132c589f50507027c5cbeac2ab2387 (diff)
downloadllvm-26538e8cc5d4aec1daf6243a1729fe2e99d73447.zip
llvm-26538e8cc5d4aec1daf6243a1729fe2e99d73447.tar.gz
llvm-26538e8cc5d4aec1daf6243a1729fe2e99d73447.tar.bz2
Remove unused but set variable.
llvm-svn: 150877
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 8e6b6c5..c727e88 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/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<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;
{