aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2020-12-18 19:08:17 -0800
committerKazu Hirata <kazu@google.com>2020-12-18 19:08:17 -0800
commit805d59593f50a5c5050c0fc5cb9fbe02cd751511 (patch)
tree5567e7d738342325f41f2e918bf13ad992b570e9 /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
parenta913a583f00a31c37a1572089fe8898a6c19536c (diff)
downloadllvm-805d59593f50a5c5050c0fc5cb9fbe02cd751511.zip
llvm-805d59593f50a5c5050c0fc5cb9fbe02cd751511.tar.gz
llvm-805d59593f50a5c5050c0fc5cb9fbe02cd751511.tar.bz2
[Analysis, CodeGen, IR] Use contains (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index e7256a9..04ead18 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -2679,7 +2679,7 @@ std::tuple<bool, bool> InstrRefBasedLDV::vlocJoin(
for (auto p : BlockOrders) {
// If the predecessor isn't in scope / to be explored, we'll never be
// able to join any locations.
- if (BlocksToExplore.find(p) == BlocksToExplore.end()) {
+ if (!BlocksToExplore.contains(p)) {
Bail = true;
break;
}