diff options
Diffstat (limited to 'lldb/source/Interpreter/OptionValueUUID.cpp')
| -rw-r--r-- | lldb/source/Interpreter/OptionValueUUID.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Interpreter/OptionValueUUID.cpp b/lldb/source/Interpreter/OptionValueUUID.cpp index 18132238118..bd6858cee67 100644 --- a/lldb/source/Interpreter/OptionValueUUID.cpp +++ b/lldb/source/Interpreter/OptionValueUUID.cpp @@ -68,7 +68,7 @@ lldb::OptionValueSP OptionValueUUID::DeepCopy() const { } size_t OptionValueUUID::AutoComplete(CommandInterpreter &interpreter, - const char *s, int match_start_point, + llvm::StringRef s, int match_start_point, int max_return_elements, bool &word_complete, StringList &matches) { word_complete = false; @@ -79,8 +79,8 @@ size_t OptionValueUUID::AutoComplete(CommandInterpreter &interpreter, const size_t num_modules = target->GetImages().GetSize(); if (num_modules > 0) { UUID::ValueType uuid_bytes; - const size_t num_bytes_decoded = - UUID::DecodeUUIDBytesFromCString(s, uuid_bytes, nullptr); + llvm::StringRef rest = UUID::DecodeUUIDBytesFromString(s, uuid_bytes); + const size_t num_bytes_decoded = s.size() - rest.size(); for (size_t i = 0; i < num_modules; ++i) { ModuleSP module_sp(target->GetImages().GetModuleAtIndex(i)); if (module_sp) { |

