diff options
author | Kazu Hirata <kazu@google.com> | 2023-04-15 14:22:13 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-04-15 14:22:13 -0700 |
commit | fcc04de5766ac8f02baded1f0d0822a36a343dde (patch) | |
tree | a441dfde78ca6dcdc715f8a0372db553e7a47d78 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 4241d890aec5aba989ef78853bbb0c88c41e2fad (diff) | |
download | llvm-fcc04de5766ac8f02baded1f0d0822a36a343dde.zip llvm-fcc04de5766ac8f02baded1f0d0822a36a343dde.tar.gz llvm-fcc04de5766ac8f02baded1f0d0822a36a343dde.tar.bz2 |
[lldb] Use StringMap::contains (NFC)
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 95bc79e..ab5e19d 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. |