[Lldb-commits] [lldb] r150079 - /lldb/trunk/source/Expression/ClangUserExpression.cpp

Sean Callanan scallanan at apple.com
Wed Feb 8 10:43:35 PST 2012


Author: spyffe
Date: Wed Feb  8 12:43:35 2012
New Revision: 150079

URL: http://llvm.org/viewvc/llvm-project?rev=150079&view=rev
Log:
In the absence of a valid process, the expression
parser now at least tries to generate IR for the
target.

Modified:
    lldb/trunk/source/Expression/ClangUserExpression.cpp

Modified: lldb/trunk/source/Expression/ClangUserExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangUserExpression.cpp?rev=150079&r1=150078&r2=150079&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangUserExpression.cpp (original)
+++ lldb/trunk/source/Expression/ClangUserExpression.cpp Wed Feb  8 12:43:35 2012
@@ -317,7 +317,12 @@
     }
     
     Process *process = exe_ctx.GetProcessPtr();
-    ClangExpressionParser parser(process, *this);
+    ExecutionContextScope *exe_scope = process;
+    
+    if (!exe_scope)
+        exe_scope = exe_ctx.GetTargetPtr();
+    
+    ClangExpressionParser parser(exe_scope, *this);
     
     unsigned num_errors = parser.Parse (error_stream);
     





More information about the lldb-commits mailing list