projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8623b0
)
[SCEV] Fix a warning on an unused lambda capture
author
Kazu Hirata
<kazu@google.com>
Mon, 25 Oct 2021 07:45:18 +0000
(
00:45
-0700)
committer
Kazu Hirata
<kazu@google.com>
Mon, 25 Oct 2021 07:45:18 +0000
(
00:45
-0700)
This patch fixes:
llvm/lib/Analysis/ScalarEvolution.cpp:12770:37: error: lambda
capture 'this' is not used [-Werror,-Wunused-lambda-capture]
llvm/lib/Analysis/ScalarEvolution.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/ScalarEvolution.cpp
b/llvm/lib/Analysis/ScalarEvolution.cpp
index
f0e3237
..
d3ae7da
100644
(file)
--- a/
llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/
llvm/lib/Analysis/ScalarEvolution.cpp
@@
-12767,7
+12767,7
@@
void ScalarEvolution::forgetMemoizedResults(ArrayRef<const SCEV *> SCEVs) {
++I;
}
- auto RemoveSCEVFromBackedgeMap = [
this,
&ToForget](
+ auto RemoveSCEVFromBackedgeMap = [&ToForget](
DenseMap<const Loop *, BackedgeTakenInfo> &Map) {
for (auto I = Map.begin(), E = Map.end(); I != E;) {
BackedgeTakenInfo &BEInfo = I->second;