diff options
author | Kazu Hirata <kazu@google.com> | 2020-12-18 19:08:17 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2020-12-18 19:08:17 -0800 |
commit | 805d59593f50a5c5050c0fc5cb9fbe02cd751511 (patch) | |
tree | 5567e7d738342325f41f2e918bf13ad992b570e9 /llvm/lib/IR/ModuleSummaryIndex.cpp | |
parent | a913a583f00a31c37a1572089fe8898a6c19536c (diff) | |
download | llvm-805d59593f50a5c5050c0fc5cb9fbe02cd751511.zip llvm-805d59593f50a5c5050c0fc5cb9fbe02cd751511.tar.gz llvm-805d59593f50a5c5050c0fc5cb9fbe02cd751511.tar.bz2 |
[Analysis, CodeGen, IR] Use contains (NFC)
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 |