]> granicus.if.org Git - llvm/commitdiff
Fix a Wunused-lambda-capture warning.
authorNico Weber <nicolasweber@gmx.de>
Wed, 12 Jun 2019 12:46:46 +0000 (12:46 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 12 Jun 2019 12:46:46 +0000 (12:46 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363155 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolutionExpander.cpp

index d8e0b47c337a3e4b0cc1be43b3df98293b60de7c..ea936f571642aa4112ee319d9b4c43983799e7ad 100644 (file)
@@ -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.