From: Jason Molenda Date: Thu, 16 Oct 2014 21:25:43 +0000 (+0000) Subject: Only call RemovePersistentVariable on expr_result if that shared X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5d8eaf0422a75a7ee2b8a343f686590ed7d6ba8;p=platform%2Fupstream%2Fllvm.git Only call RemovePersistentVariable on expr_result if that shared pointer contains something. llvm-svn: 219966 --- diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp index bd19183..a15d1a6 100644 --- a/lldb/source/Expression/ClangUserExpression.cpp +++ b/lldb/source/Expression/ClangUserExpression.cpp @@ -1070,7 +1070,7 @@ ClangUserExpression::Evaluate (ExecutionContext &exe_ctx, user_expression_sp, expr_result); - if (options.GetResultIsInternal() && process) + if (options.GetResultIsInternal() && expr_result && process) { process->GetTarget().GetPersistentVariables().RemovePersistentVariable (expr_result); }