Skip to content

Commit 3729a5a

Browse files
[SCEV] Fix a warning on an unused lambda capture
This patch fixes: llvm/lib/Analysis/ScalarEvolution.cpp:12770:37: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
1 parent f8623b0 commit 3729a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12767,7 +12767,7 @@ void ScalarEvolution::forgetMemoizedResults(ArrayRef<const SCEV *> SCEVs) {
1276712767
++I;
1276812768
}
1276912769

12770-
auto RemoveSCEVFromBackedgeMap = [this, &ToForget](
12770+
auto RemoveSCEVFromBackedgeMap = [&ToForget](
1277112771
DenseMap<const Loop *, BackedgeTakenInfo> &Map) {
1277212772
for (auto I = Map.begin(), E = Map.end(); I != E;) {
1277312773
BackedgeTakenInfo &BEInfo = I->second;

0 commit comments

Comments
 (0)