diff options
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
-rw-r--r-- | llvm/lib/IR/ModuleSummaryIndex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/ModuleSummaryIndex.cpp b/llvm/lib/IR/ModuleSummaryIndex.cpp index 5346323..5d21ca7 100644 --- a/llvm/lib/IR/ModuleSummaryIndex.cpp +++ b/llvm/lib/IR/ModuleSummaryIndex.cpp @@ -179,7 +179,7 @@ propagateAttributesToRefs(GlobalValueSummary *S, if (!VI.getAccessSpecifier()) { if (!MarkedNonReadWriteOnly.insert(VI).second) continue; - } else if (MarkedNonReadWriteOnly.find(VI) != MarkedNonReadWriteOnly.end()) + } else if (MarkedNonReadWriteOnly.contains(VI)) continue; for (auto &Ref : VI.getSummaryList()) // If references to alias is not read/writeonly then aliasee |