Skip to content

Commit

Permalink
Simplify condition (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-prantl committed Apr 29, 2024
1 parent 869ffcf commit 028546c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/source/Expression/UserExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ UserExpression::Evaluate(ExecutionContext &exe_ctx,
// If the language was not specified in the expression command, set it to the
// language in the target's properties if specified, else default to the
// langage for the frame.
if (!language.name) {
if (!language) {
if (target->GetLanguage() != lldb::eLanguageTypeUnknown)
language = target->GetLanguage();
else if (StackFrame *frame = exe_ctx.GetFramePtr())
Expand Down

0 comments on commit 028546c

Please sign in to comment.