[lldb] Use StringMap::contains (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 15 Apr 2023 21:22:13 +0000 (14:22 -0700)
committerKazu Hirata <kazu@google.com>
Sat, 15 Apr 2023 21:22:13 +0000 (14:22 -0700)
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

index 95bc79e..ab5e19d 100644 (file)
@@ -4201,8 +4201,7 @@ void ParseFlags(
 
             // If no fields overlap, use them.
             if (overlap == fields.end()) {
-              if (registers_flags_types.find(*id) !=
-                  registers_flags_types.end()) {
+              if (registers_flags_types.contains(*id)) {
                 // In theory you could define some flag set, use it with a
                 // register then redefine it. We do not know if anyone does
                 // that, or what they would expect to happen in that case.