aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-06-12 12:46:46 +0000
committerNico Weber <nicolasweber@gmx.de>2019-06-12 12:46:46 +0000
commit8bbdea447ed14db4cb5172984c9df197f2884433 (patch)
treebc555e2749edee5ba4072f806e0562b8f89c1ed5 /llvm/lib/Analysis/ScalarEvolutionExpander.cpp
parent2aa3f3d43f7dad32e5ae0581203ead5fc71b81c4 (diff)
downloadllvm-8bbdea447ed14db4cb5172984c9df197f2884433.zip
llvm-8bbdea447ed14db4cb5172984c9df197f2884433.tar.gz
llvm-8bbdea447ed14db4cb5172984c9df197f2884433.tar.bz2
Fix a Wunused-lambda-capture warning.
The capture was added in the first commit of https://reviews.llvm.org/D61934 when it was used. In the reland, the use was removed but the capture wasn't removed. llvm-svn: 363155
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionExpander.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolutionExpander.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
index d8e0b47..ea936f5 100644
--- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
@@ -783,7 +783,7 @@ Value *SCEVExpander::visitMulExpr(const SCEVMulExpr *S) {
// Expand the calculation of X pow N in the following manner:
// Let N = P1 + P2 + ... + PK, where all P are powers of 2. Then:
// X pow N = (X pow P1) * (X pow P2) * ... * (X pow PK).
- const auto ExpandOpBinPowN = [this, &I, &OpsAndLoops, &Ty, &S]() {
+ const auto ExpandOpBinPowN = [this, &I, &OpsAndLoops, &Ty]() {
auto E = I;
// Calculate how many times the same operand from the same loop is included
// into this power.