diff options
author | Greg Clayton <gclayton@apple.com> | 2010-12-14 04:58:53 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-12-14 04:58:53 +0000 |
commit | 72eff18ae4fd86c3178e10f72fa2663cf947a05a (patch) | |
tree | 296e06d0dceb8fc7dca47ca11ac5a8ee6c81fc49 /lldb/source/API/SBCompileUnit.cpp | |
parent | 092a7bdf9f15d31e72856b2823babed90d88c6ac (diff) | |
download | bcm5719-llvm-72eff18ae4fd86c3178e10f72fa2663cf947a05a.tar.gz bcm5719-llvm-72eff18ae4fd86c3178e10f72fa2663cf947a05a.zip |
Fixed SBFrame to properly check to make sure it has a valid m_opaque_sp object
before trying to use it.
llvm-svn: 121748
Diffstat (limited to 'lldb/source/API/SBCompileUnit.cpp')
-rw-r--r-- | lldb/source/API/SBCompileUnit.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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) |