Check that process is non-null before calling a method in it.

clang static analyzer fixit.

llvm-svn: 219886
This commit is contained in:
Jason Molenda 2014-10-16 01:23:06 +00:00
parent 4c9bd87916
commit aee7eb5ed1
1 changed files with 1 additions and 1 deletions

View File

@ -1070,7 +1070,7 @@ ClangUserExpression::Evaluate (ExecutionContext &exe_ctx,
user_expression_sp,
expr_result);
if (options.GetResultIsInternal())
if (options.GetResultIsInternal() && process)
{
process->GetTarget().GetPersistentVariables().RemovePersistentVariable (expr_result);
}