diff options
author | Kazu Hirata <kazu@google.com> | 2023-03-14 08:07:42 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-03-14 08:07:42 -0700 |
commit | a585fa2637774232fd792047191f8358f462230f (patch) | |
tree | 7aa09ae23d6979e3ac49af4eee8a86806241ac52 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 070283825aaff778f7fb527ebc4ef74c84b6c889 (diff) | |
download | llvm-a585fa2637774232fd792047191f8358f462230f.zip llvm-a585fa2637774232fd792047191f8358f462230f.tar.gz llvm-a585fa2637774232fd792047191f8358f462230f.tar.bz2 |
[CodeGen] Use *{Set,Map}::contains (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 79cd7060..2c83d70 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -3890,7 +3890,7 @@ private: while (!Worklist.empty()) { Value *Current = Worklist.pop_back_val(); // if it is already visited or it is an ending value then skip it. - if (Map.find(Current) != Map.end()) + if (Map.contains(Current)) continue; TraverseOrder.push_back(Current); |