[llvm] r363155 - Fix a Wunused-lambda-capture warning.
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 12 05:46:46 PDT 2019
Author: nico
Date: Wed Jun 12 05:46:46 2019
New Revision: 363155
URL: http://llvm.org/viewvc/llvm-project?rev=363155&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp?rev=363155&r1=363154&r2=363155&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp Wed Jun 12 05:46:46 2019
@@ -783,7 +783,7 @@ Value *SCEVExpander::visitMulExpr(const
// 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.
More information about the llvm-commits
mailing list