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:
Sean Callanan 2012-02-08 18:43:35 +00:00
parent 6f35837048
commit aa719af082
1 changed files with 6 additions and 1 deletions

View File

@ -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);