diff options
author | Enrico Granata <granata.enrico@gmail.com> | 2011-08-03 02:18:51 +0000 |
---|---|---|
committer | Enrico Granata <granata.enrico@gmail.com> | 2011-08-03 02:18:51 +0000 |
commit | 9910bc855d55b4958182321cfc81140346aa2e9f (patch) | |
tree | b1580154477ba572aee2e9b1ed49954c408c9ffb /lldb/source/Core/ValueObjectDynamicValue.cpp | |
parent | 59546b8f79bd020362c4478628111c0beb0b1dc0 (diff) | |
download | bcm5719-llvm-9910bc855d55b4958182321cfc81140346aa2e9f.tar.gz bcm5719-llvm-9910bc855d55b4958182321cfc81140346aa2e9f.zip |
Fixed an issue where the KVO swizzled type would be returned as the dynamic type instead of the actual user-level type
- see the test case in lang/objc/objc-dynamic-value for an example
Objective-C dynamic type lookup now works for every Objective-C type
- previously, true dynamic lookup was only performed for type id
llvm-svn: 136763
Diffstat (limited to 'lldb/source/Core/ValueObjectDynamicValue.cpp')
-rw-r--r-- | lldb/source/Core/ValueObjectDynamicValue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObjectDynamicValue.cpp b/lldb/source/Core/ValueObjectDynamicValue.cpp index f48bebd7d7e..3dd360d9876 100644 --- a/lldb/source/Core/ValueObjectDynamicValue.cpp +++ b/lldb/source/Core/ValueObjectDynamicValue.cpp @@ -160,7 +160,7 @@ ValueObjectDynamicValue::UpdateValue () { LanguageRuntime *objc_runtime = process->GetLanguageRuntime (lldb::eLanguageTypeObjC); if (objc_runtime) - found_dynamic_type = cpp_runtime->GetDynamicTypeAndAddress (*m_parent, m_use_dynamic, class_type_or_name, dynamic_address); + found_dynamic_type = objc_runtime->GetDynamicTypeAndAddress (*m_parent, m_use_dynamic, class_type_or_name, dynamic_address); } } |