Skip to content

Commit 9097ef8

Browse files
committed
[lldb] Remove pointless assign to found_suffix (NFC)
1 parent ba8683f commit 9097ef8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lldb/source/Utility/Args.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,6 @@ void OptionsWithRaw::SetFromString(llvm::StringRef arg_string) {
640640
}
641641

642642
bool found_suffix = false;
643-
644643
while (!arg_string.empty()) {
645644
// The length of the prefix before parsing.
646645
std::size_t prev_prefix_length = original_args.size() - arg_string.size();
@@ -679,10 +678,8 @@ void OptionsWithRaw::SetFromString(llvm::StringRef arg_string) {
679678
}
680679

681680
// If we didn't find a suffix delimiter, the whole string is the raw suffix.
682-
if (!found_suffix) {
683-
found_suffix = true;
681+
if (!found_suffix)
684682
m_suffix = std::string(original_args);
685-
}
686683
}
687684

688685
void llvm::yaml::MappingTraits<Args::ArgEntry>::mapping(IO &io,

0 commit comments

Comments
 (0)