[Lldb-commits] [lldb] r219966 - Only call RemovePersistentVariable on expr_result if that shared
Jason Molenda
jmolenda at apple.com
Thu Oct 16 14:25:43 PDT 2014
Author: jmolenda
Date: Thu Oct 16 16:25:43 2014
New Revision: 219966
URL: http://llvm.org/viewvc/llvm-project?rev=219966&view=rev
Log:
Only call RemovePersistentVariable on expr_result if that shared
pointer contains something.
Modified:
lldb/trunk/source/Expression/ClangUserExpression.cpp
Modified: lldb/trunk/source/Expression/ClangUserExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangUserExpression.cpp?rev=219966&r1=219965&r2=219966&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangUserExpression.cpp (original)
+++ lldb/trunk/source/Expression/ClangUserExpression.cpp Thu Oct 16 16:25:43 2014
@@ -1070,7 +1070,7 @@ ClangUserExpression::Evaluate (Execution
user_expression_sp,
expr_result);
- if (options.GetResultIsInternal() && process)
+ if (options.GetResultIsInternal() && expr_result && process)
{
process->GetTarget().GetPersistentVariables().RemovePersistentVariable (expr_result);
}
More information about the lldb-commits
mailing list