diff options
| author | Jason Molenda <jmolenda@apple.com> | 2014-10-16 21:25:43 +0000 |
|---|---|---|
| committer | Jason Molenda <jmolenda@apple.com> | 2014-10-16 21:25:43 +0000 |
| commit | e5d8eaf0422a75a7ee2b8a343f686590ed7d6ba8 (patch) | |
| tree | 321cd2f14f0ad827ce346a0b7e683aad38096d79 /lldb/source/Expression | |
| parent | 330e9f6c5fa41ced1ad286050facd25303ae2286 (diff) | |
| download | bcm5719-llvm-e5d8eaf0422a75a7ee2b8a343f686590ed7d6ba8.tar.gz bcm5719-llvm-e5d8eaf0422a75a7ee2b8a343f686590ed7d6ba8.zip | |
Only call RemovePersistentVariable on expr_result if that shared
pointer contains something.
llvm-svn: 219966
Diffstat (limited to 'lldb/source/Expression')
| -rw-r--r-- | lldb/source/Expression/ClangUserExpression.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp index bd1918369a0..a15d1a67e0c 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); } |

