Check that process is non-null before calling a method in it.
authorJason Molenda <jmolenda@apple.com>
Thu, 16 Oct 2014 01:23:06 +0000 (01:23 +0000)
committerJason Molenda <jmolenda@apple.com>
Thu, 16 Oct 2014 01:23:06 +0000 (01:23 +0000)
clang static analyzer fixit.

llvm-svn: 219886

lldb/source/Expression/ClangUserExpression.cpp

index dab7b55..871f8df 100644 (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);
             }