diff options
author | Kazu Hirata <kazu@google.com> | 2023-03-15 08:46:32 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-03-15 08:46:32 -0700 |
commit | 8bdf38785888ddc7f2428918193b3f371ebea5cf (patch) | |
tree | 3aedc2e005fc78bbf81b98be1b068584b272f4e5 /llvm/lib/Support/CommandLine.cpp | |
parent | 9f40e86dcc7f71e6a9e6ed2a8debd75516c253a8 (diff) | |
download | llvm-8bdf38785888ddc7f2428918193b3f371ebea5cf.zip llvm-8bdf38785888ddc7f2428918193b3f371ebea5cf.tar.gz llvm-8bdf38785888ddc7f2428918193b3f371ebea5cf.tar.bz2 |
Use *{Map,Set}::contains (NFC)
Differential Revision: https://reviews.llvm.org/D146104
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 92e69db..d3efb8b 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -2757,7 +2757,7 @@ StringMap<Option *> &cl::getRegisteredOptions(SubCommand &Sub) { initCommonOptions(); auto &Subs = GlobalParser->RegisteredSubCommands; (void)Subs; - assert(is_contained(Subs, &Sub)); + assert(Subs.contains(&Sub)); return Sub.OptionsMap; } |