[Lldb-commits] [lldb] 028546c - Simplify condition (NFC)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 29 15:08:56 PDT 2024


Author: Adrian Prantl
Date: 2024-04-29T15:08:49-07:00
New Revision: 028546cce2316a1074aa27001450295d856e1fdc

URL: https://github.com/llvm/llvm-project/commit/028546cce2316a1074aa27001450295d856e1fdc
DIFF: https://github.com/llvm/llvm-project/commit/028546cce2316a1074aa27001450295d856e1fdc.diff

LOG: Simplify condition (NFC)

Added: 
    

Modified: 
    lldb/source/Expression/UserExpression.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Expression/UserExpression.cpp b/lldb/source/Expression/UserExpression.cpp
index 84578c7f9ad272..5658426c88912d 100644
--- a/lldb/source/Expression/UserExpression.cpp
+++ b/lldb/source/Expression/UserExpression.cpp
@@ -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())


        


More information about the lldb-commits mailing list