From 13ac0e253d0955248e66a2fa34064ed70e3daca1 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 17 Oct 2012 19:03:34 +0000 Subject: Fixing an issue where the dynamic type of an Objective-C pointer changed but we still reported the one-true-definition for the previous type. This was causing issues where a variable could be reported as being of an entirely different type after an assignment llvm-svn: 166119 --- lldb/source/Core/ValueObject.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lldb/source/Core/ValueObject.cpp') diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 9debcc0318a..4db14ddd37f 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -274,6 +274,13 @@ ValueObject::SetNeedsUpdate () ClearUserVisibleData(eClearUserVisibleDataItemsValue); } +void +ValueObject::ResetCompleteTypeInfo () +{ + m_did_calculate_complete_objc_class_type = false; + m_override_type = ClangASTType(); +} + ClangASTType ValueObject::MaybeCalculateCompleteType () { -- cgit v1.2.3