[Lldb-commits] [lldb] r168743 - /lldb/trunk/source/Core/ValueObjectDynamicValue.cpp

Enrico Granata egranata at apple.com
Tue Nov 27 15:28:32 PST 2012


Author: enrico
Date: Tue Nov 27 17:28:32 2012
New Revision: 168743

URL: http://llvm.org/viewvc/llvm-project?rev=168743&view=rev
Log:
<rdar://problem/12754509>
Make sure that ValueObjectDynamicValue clears itself when no dynamic type information can be found
This behavior was supposed to be already happening (as per the comment lines)


Modified:
    lldb/trunk/source/Core/ValueObjectDynamicValue.cpp

Modified: lldb/trunk/source/Core/ValueObjectDynamicValue.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObjectDynamicValue.cpp?rev=168743&r1=168742&r2=168743&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObjectDynamicValue.cpp (original)
+++ lldb/trunk/source/Core/ValueObjectDynamicValue.cpp Tue Nov 27 17:28:32 2012
@@ -176,8 +176,9 @@
     // Or we could return false, and make ourselves an echo of our parent?
     if (!found_dynamic_type)
     {
-        if (m_type_sp)
-            SetValueDidChange(true);
+        ClearDynamicTypeInformation();
+        m_type_sp.reset();
+        SetValueDidChange(true);
         m_value = m_parent->GetValue();
         m_error = m_value.GetValueAsData (&exe_ctx, GetClangAST(), m_data, 0, GetModule().get());
         return m_error.Success();





More information about the lldb-commits mailing list