summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangUserExpression.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-04-22 23:53:53 +0000
committerJim Ingham <jingham@apple.com>2011-04-22 23:53:53 +0000
commit58b59f9522a0aafd4c2efe0781a9c88f005b7e00 (patch)
tree5e036735ce45e937a4d7f19579f0034ea2b6be00 /lldb/source/Expression/ClangUserExpression.cpp
parent0ff2b2eda3509727fdb93e2b7f45ace85c4b3767 (diff)
downloadbcm5719-llvm-58b59f9522a0aafd4c2efe0781a9c88f005b7e00.tar.gz
bcm5719-llvm-58b59f9522a0aafd4c2efe0781a9c88f005b7e00.zip
Fix up how the ValueObjects manage their life cycle so that you can hand out a shared
pointer to a ValueObject or any of its dependent ValueObjects, and the whole cluster will stay around as long as that shared pointer stays around. llvm-svn: 130035
Diffstat (limited to 'lldb/source/Expression/ClangUserExpression.cpp')
-rw-r--r--lldb/source/Expression/ClangUserExpression.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp
index c86a771d09c..5a92cac7e3f 100644
--- a/lldb/source/Expression/ClangUserExpression.cpp
+++ b/lldb/source/Expression/ClangUserExpression.cpp
@@ -570,7 +570,7 @@ ClangUserExpression::Evaluate (ExecutionContext &exe_ctx,
{
error.SetErrorString ("Must have a process to evaluate expressions.");
- result_valobj_sp.reset (new ValueObjectConstResult (NULL, error));
+ result_valobj_sp = ValueObjectConstResult::Create (NULL, error);
return eExecutionSetupError;
}
@@ -590,7 +590,7 @@ ClangUserExpression::Evaluate (ExecutionContext &exe_ctx,
else
error.SetErrorString (install_errors.GetString().c_str());
- result_valobj_sp.reset (new ValueObjectConstResult (NULL, error));
+ result_valobj_sp = ValueObjectConstResult::Create (NULL, error);
return eExecutionSetupError;
}
@@ -672,7 +672,7 @@ ClangUserExpression::Evaluate (ExecutionContext &exe_ctx,
}
if (result_valobj_sp.get() == NULL)
- result_valobj_sp.reset (new ValueObjectConstResult (NULL, error));
+ result_valobj_sp = ValueObjectConstResult::Create (NULL, error);
return execution_results;
}
OpenPOWER on IntegriCloud