From 72eff18ae4fd86c3178e10f72fa2663cf947a05a Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 14 Dec 2010 04:58:53 +0000 Subject: Fixed SBFrame to properly check to make sure it has a valid m_opaque_sp object before trying to use it. llvm-svn: 121748 --- lldb/source/API/SBCompileUnit.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lldb/source/API/SBCompileUnit.cpp') diff --git a/lldb/source/API/SBCompileUnit.cpp b/lldb/source/API/SBCompileUnit.cpp index 5bc6b5b4b63..4ff799afd10 100644 --- a/lldb/source/API/SBCompileUnit.cpp +++ b/lldb/source/API/SBCompileUnit.cpp @@ -170,6 +170,13 @@ SBCompileUnit::get () const { return m_opaque_ptr; } + +void +SBCompileUnit::reset (lldb_private::CompileUnit *lldb_object_ptr) +{ + m_opaque_ptr = lldb_object_ptr; +} + bool SBCompileUnit::GetDescription (SBStream &description) -- cgit v1.2.3