diff options
author | Kazu Hirata <kazu@google.com> | 2023-03-14 18:56:06 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-03-14 18:56:07 -0700 |
commit | b595eb83e5c128ee969fb6491372438ea1974169 (patch) | |
tree | 494cc6b2ba2aacf64412f92e853be9e80614b388 /llvm/lib/Support/CommandLine.cpp | |
parent | 768211f48f2d52fdd555a07f3dae8fbf1def88cc (diff) | |
download | llvm-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.cpp | 3 |
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! |