forked from OSchip/llvm-project
In the absence of a valid process, the expression
parser now at least tries to generate IR for the target. llvm-svn: 150079
This commit is contained in:
parent
6f35837048
commit
aa719af082
|
@ -317,7 +317,12 @@ ClangUserExpression::Parse (Stream &error_stream,
|
|||
}
|
||||
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue