diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-10-07 09:32:50 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-10-07 09:32:50 +0000 |
commit | 2815d9c9989c52ac9c5687253bc544fac9d32c7f (patch) | |
tree | 6044ff3516b2071558e2a1333718ad2356302d3a /lib | |
parent | 3d712898fcabf5747db25dac497747572d506c7a (diff) | |
download | clang-2815d9c9989c52ac9c5687253bc544fac9d32c7f.tar.gz |
Sema::tryCaptureVariable(): Prune three unused variables, HasBlocksAttr, IsBlock, and IsLambda. [-Wunused-variable]
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 8129f8693f..9188808bce 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -11687,8 +11687,6 @@ bool Sema::tryCaptureVariable(VarDecl *Var, SourceLocation ExprLoc, if (!Var->isInitCapture() && Var->getDeclContext() == DC) return true; if (!Var->hasLocalStorage()) return true; - bool HasBlocksAttr = Var->hasAttr<BlocksAttr>(); - // Walk up the stack to determine whether we can capture the variable, // performing the "simple" checks that don't depend on type. We stop when // we've either hit the declared scope of the variable or find an existing @@ -11718,8 +11716,6 @@ bool Sema::tryCaptureVariable(VarDecl *Var, SourceLocation ExprLoc, if (isVariableAlreadyCapturedInScopeInfo(CSI, Var, Nested, CaptureType, DeclRefType)) break; - bool IsBlock = isa<BlockScopeInfo>(CSI); - bool IsLambda = isa<LambdaScopeInfo>(CSI); // Certain capturing entities (lambdas, blocks etc.) are not allowed to capture // certain types of variables (unnamed, variably modified types etc.) |