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())


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to