Fixing a silly typo in the previous patch
authorEnrico Granata <egranata@apple.com>
Tue, 27 Nov 2012 23:50:00 +0000 (23:50 +0000)
committerEnrico Granata <egranata@apple.com>
Tue, 27 Nov 2012 23:50:00 +0000 (23:50 +0000)
llvm-svn: 168748

lldb/source/Core/ValueObjectDynamicValue.cpp

index 4e038c5..9eb63b8 100644 (file)
@@ -176,9 +176,10 @@ ValueObjectDynamicValue::UpdateValue ()
     // 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();