diff options
author | Omair Javaid <omair.javaid@linaro.org> | 2016-11-22 09:47:00 +0000 |
---|---|---|
committer | Omair Javaid <omair.javaid@linaro.org> | 2016-11-22 09:47:00 +0000 |
commit | 99a318e11220f733e8bae8cb8417862ac979f7ea (patch) | |
tree | a588e205dd582de84165c9af8b39a5941be1e011 /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | 49b3733d57692a4726cce257e95932f2b74a2b30 (diff) | |
download | bcm5719-llvm-99a318e11220f733e8bae8cb8417862ac979f7ea.tar.gz bcm5719-llvm-99a318e11220f733e8bae8cb8417862ac979f7ea.zip |
Fix build failure on Linux and BSD by reverting r287597
Linux and BSD builds failing after this changes from rev 287597.
llvm-svn: 287631
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index f1fa7b8ee7d..946bb83aa8f 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -1476,12 +1476,12 @@ public: int match_start_point, int max_return_elements, bool &word_complete, StringList &matches) override { - llvm::StringRef completion_str = input[cursor_index].ref; - completion_str = completion_str.take_front(cursor_char_position); + std::string completion_str(input.GetArgumentAtIndex(cursor_index)); + completion_str.erase(cursor_char_position); CommandCompletions::InvokeCommonCompletionCallbacks( GetCommandInterpreter(), CommandCompletions::eDiskFileCompletion, - completion_str, match_start_point, max_return_elements, nullptr, + completion_str.c_str(), match_start_point, max_return_elements, nullptr, word_complete, matches); return matches.GetSize(); } |