Skip to content
Snippets Groups Projects
Commit aa719af0 authored by Sean Callanan's avatar Sean Callanan
Browse files

In the absence of a valid process, the expression

parser now at least tries to generate IR for the
target.

llvm-svn: 150079
parent 6f358370
No related branches found
No related tags found
No related merge requests found
...@@ -317,7 +317,12 @@ ClangUserExpression::Parse (Stream &error_stream, ...@@ -317,7 +317,12 @@ ClangUserExpression::Parse (Stream &error_stream,
} }
Process *process = exe_ctx.GetProcessPtr(); 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); unsigned num_errors = parser.Parse (error_stream);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment