[Lldb-commits] [lldb] 9097ef8 - [lldb] Remove pointless assign to found_suffix (NFC)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 5 22:54:11 PDT 2020
Author: Jonas Devlieghere
Date: 2020-08-05T22:54:03-07:00
New Revision: 9097ef84ce590dd002c972522d08c1de1329a7ce
URL: https://github.com/llvm/llvm-project/commit/9097ef84ce590dd002c972522d08c1de1329a7ce
DIFF: https://github.com/llvm/llvm-project/commit/9097ef84ce590dd002c972522d08c1de1329a7ce.diff
LOG: [lldb] Remove pointless assign to found_suffix (NFC)
Added:
Modified:
lldb/source/Utility/Args.cpp
Removed:
################################################################################
diff --git a/lldb/source/Utility/Args.cpp b/lldb/source/Utility/Args.cpp
index f718c6f9ff1c..4f3285404b6d 100644
--- a/lldb/source/Utility/Args.cpp
+++ b/lldb/source/Utility/Args.cpp
@@ -640,7 +640,6 @@ void OptionsWithRaw::SetFromString(llvm::StringRef arg_string) {
}
bool found_suffix = false;
-
while (!arg_string.empty()) {
// The length of the prefix before parsing.
std::size_t prev_prefix_length = original_args.size() - arg_string.size();
@@ -679,10 +678,8 @@ void OptionsWithRaw::SetFromString(llvm::StringRef arg_string) {
}
// If we didn't find a suffix delimiter, the whole string is the raw suffix.
- if (!found_suffix) {
- found_suffix = true;
+ if (!found_suffix)
m_suffix = std::string(original_args);
- }
}
void llvm::yaml::MappingTraits<Args::ArgEntry>::mapping(IO &io,
More information about the lldb-commits
mailing list