[Lldb-commits] [lldb] fcc04de - [lldb] Use StringMap::contains (NFC)

Kazu Hirata via lldb-commits lldb-commits at lists.llvm.org
Sat Apr 15 14:22:19 PDT 2023


Author: Kazu Hirata
Date: 2023-04-15T14:22:13-07:00
New Revision: fcc04de5766ac8f02baded1f0d0822a36a343dde

URL: https://github.com/llvm/llvm-project/commit/fcc04de5766ac8f02baded1f0d0822a36a343dde
DIFF: https://github.com/llvm/llvm-project/commit/fcc04de5766ac8f02baded1f0d0822a36a343dde.diff

LOG: [lldb] Use StringMap::contains (NFC)

Added: 
    

Modified: 
    lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 95bc79ebdfc9d..ab5e19da32911 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -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.


        


More information about the lldb-commits mailing list