From 75badc46e9f4f96c08c8c0b7bbf2b1c6b1ac15f7 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Tue, 27 Nov 2012 23:50:00 +0000 Subject: [PATCH] Fixing a silly typo in the previous patch llvm-svn: 168748 --- lldb/source/Core/ValueObjectDynamicValue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lldb/source/Core/ValueObjectDynamicValue.cpp b/lldb/source/Core/ValueObjectDynamicValue.cpp index 4e038c5..9eb63b8 100644 --- a/lldb/source/Core/ValueObjectDynamicValue.cpp +++ b/lldb/source/Core/ValueObjectDynamicValue.cpp @@ -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(); -- 2.7.4