summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polly/lib/Analysis/ScopInfo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp
index 093cfb09af9..c2c73502fd7 100644
--- a/polly/lib/Analysis/ScopInfo.cpp
+++ b/polly/lib/Analysis/ScopInfo.cpp
@@ -1468,8 +1468,7 @@ void ScopStmt::removeMemoryAccesses(MemoryAccessList &InvMAs) {
// together with all scalar accesses that were caused by them.
for (MemoryAccess *MA : InvMAs) {
auto Predicate = [&](MemoryAccess *Acc) {
- return Acc == MA ||
- Acc->getAccessInstruction() == MA->getAccessInstruction();
+ return Acc->getAccessInstruction() == MA->getAccessInstruction();
};
MemAccs.erase(std::remove_if(MemAccs.begin(), MemAccs.end(), Predicate),
MemAccs.end());
OpenPOWER on IntegriCloud