aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-03-14 18:56:06 -0700
committerKazu Hirata <kazu@google.com>2023-03-14 18:56:07 -0700
commitb595eb83e5c128ee969fb6491372438ea1974169 (patch)
tree494cc6b2ba2aacf64412f92e853be9e80614b388 /llvm/lib/Support/CommandLine.cpp
parent768211f48f2d52fdd555a07f3dae8fbf1def88cc (diff)
downloadllvm-b595eb83e5c128ee969fb6491372438ea1974169.zip
llvm-b595eb83e5c128ee969fb6491372438ea1974169.tar.gz
llvm-b595eb83e5c128ee969fb6491372438ea1974169.tar.bz2
[llvm] Use *{Set,Map}::contains (NFC)
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 6663250..92e69db 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -208,8 +208,7 @@ public:
bool HadErrors = false;
if (O->hasArgStr()) {
// If it's a DefaultOption, check to make sure it isn't already there.
- if (O->isDefaultOption() &&
- SC->OptionsMap.find(O->ArgStr) != SC->OptionsMap.end())
+ if (O->isDefaultOption() && SC->OptionsMap.contains(O->ArgStr))
return;
// Add argument to the argument map!