From dfc88a0338fece6483ee5c6214f86ea77a91451a Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Tue, 18 Sep 2012 00:08:47 +0000 Subject: Making ClangExpression hold on to a WP to the Process instead of a SP. This fix should enable us to have per-process maps of ClangExpressions without fear of keeping the process alive forever llvm-svn: 164082 --- lldb/source/Expression/ClangUserExpression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Expression/ClangUserExpression.cpp') diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp index 194f5ab87b6..877c8d7cabc 100644 --- a/lldb/source/Expression/ClangUserExpression.cpp +++ b/lldb/source/Expression/ClangUserExpression.cpp @@ -351,7 +351,7 @@ ClangUserExpression::Parse (Stream &error_stream, if (jit_error.Success()) { if (process && m_jit_alloc != LLDB_INVALID_ADDRESS) - m_jit_process_sp = process->shared_from_this(); + m_jit_process_wp = lldb::ProcessWP(process->shared_from_this()); return true; } else -- cgit v1.2.3