From 9097ef84ce590dd002c972522d08c1de1329a7ce Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 5 Aug 2020 22:53:19 -0700 Subject: [PATCH] [lldb] Remove pointless assign to found_suffix (NFC) --- lldb/source/Utility/Args.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lldb/source/Utility/Args.cpp b/lldb/source/Utility/Args.cpp index f718c6f..4f32854 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::mapping(IO &io, -- 2.7.4