Author: Adrian Prantl Date: 2024-05-07T13:44:44-07:00 New Revision: 272ea28bdec93b33527dc54edbdef8f43c51df47
URL: https://github.com/llvm/llvm-project/commit/272ea28bdec93b33527dc54edbdef8f43c51df47 DIFF: https://github.com/llvm/llvm-project/commit/272ea28bdec93b33527dc54edbdef8f43c51df47.diff LOG: Remove else-after-break (NFC) Added: Modified: lldb/source/Expression/UserExpression.cpp Removed: ################################################################################ diff --git a/lldb/source/Expression/UserExpression.cpp b/lldb/source/Expression/UserExpression.cpp index 5658426c88912..06fdb7007cede 100644 --- a/lldb/source/Expression/UserExpression.cpp +++ b/lldb/source/Expression/UserExpression.cpp @@ -308,17 +308,16 @@ UserExpression::Evaluate(ExecutionContext &exe_ctx, diagnostic_manager.Clear(); user_expression_sp = fixed_expression_sp; break; + } + // The fixed expression also didn't parse. Let's check for any new + // fixits we could try. + if (!fixed_expression_sp->GetFixedText().empty()) { + *fixed_expression = fixed_expression_sp->GetFixedText().str(); } else { - // The fixed expression also didn't parse. Let's check for any new - // Fix-Its we could try. - if (!fixed_expression_sp->GetFixedText().empty()) { - *fixed_expression = fixed_expression_sp->GetFixedText().str(); - } else { - // Fixed expression didn't compile without a fixit, don't retry and - // don't tell the user about it. - fixed_expression->clear(); - break; - } + // Fixed expression didn't compile without a fixit, don't retry and + // don't tell the user about it. + fixed_expression->clear(); + break; } } } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits