Fixed SBFrame to properly check to make sure it has a valid m_opaque_sp object
before trying to use it.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@121748 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBBlock.cpp b/source/API/SBBlock.cpp
index 32f1021..860f9b9 100644
--- a/source/API/SBBlock.cpp
+++ b/source/API/SBBlock.cpp
@@ -151,6 +151,11 @@
     return m_opaque_ptr;
 }
 
+void
+SBBlock::reset (lldb_private::Block *block)
+{
+    m_opaque_ptr = block;
+}
 
 bool
 SBBlock::GetDescription (SBStream &description)