forked from OSchip/llvm-project
Check that process is non-null before calling a method in it.
clang static analyzer fixit. llvm-svn: 219886
This commit is contained in:
parent
4c9bd87916
commit
aee7eb5ed1
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue