diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-03-28 18:10:14 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-03-28 18:10:14 +0000 |
commit | c712bac78b20f39bb91744e24090c199876f3958 (patch) | |
tree | b274e00464f79bc05785fa995e0af9a7bf33a07c /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | 2715b2871653e8b34183d0600fd31cd9d451a0c3 (diff) | |
download | bcm5719-llvm-c712bac78b20f39bb91744e24090c199876f3958.tar.gz bcm5719-llvm-c712bac78b20f39bb91744e24090c199876f3958.zip |
[NFC] find_first_of/find_last_of -> find/rfind for single char.
For a single char argument, find_first_of is equal to find and
find_last_of is equal to rfind. While playing around with the plugin
stuff this caused an export failure because it always got inlined except
once, which resulted in an undefined symbol.
llvm-svn: 357198
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index cccaf3693f3..78241233432 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -2589,7 +2589,7 @@ void CommandInterpreter::OutputHelpText(Stream &strm, llvm::StringRef word_text, uint32_t chars_left = max_columns; auto nextWordLength = [](llvm::StringRef S) { - size_t pos = S.find_first_of(' '); + size_t pos = S.find(' '); return pos == llvm::StringRef::npos ? S.size() : pos; }; |