diff options
author | Enrico Granata <egranata@apple.com> | 2015-10-14 22:44:30 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2015-10-14 22:44:30 +0000 |
commit | 95438038018e8e102f902c2b4dd04cb4b81a93c3 (patch) | |
tree | 3c79d1cdb99995d90196f9523e9264b38053333d /lldb/source/Core/ValueObjectDynamicValue.cpp | |
parent | ddcf6b35a2dd5d3e00ada5b1a572cb1ff2a5e8fb (diff) | |
download | bcm5719-llvm-95438038018e8e102f902c2b4dd04cb4b81a93c3.tar.gz bcm5719-llvm-95438038018e8e102f902c2b4dd04cb4b81a93c3.zip |
Fix a problem where LLDB could sometimes try to get the size of an Objective-C type without passing an appropriate ExecutionContext
llvm-svn: 250339
Diffstat (limited to 'lldb/source/Core/ValueObjectDynamicValue.cpp')
-rw-r--r-- | lldb/source/Core/ValueObjectDynamicValue.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObjectDynamicValue.cpp b/lldb/source/Core/ValueObjectDynamicValue.cpp index 329d3c149e8..3de12e5a66f 100644 --- a/lldb/source/Core/ValueObjectDynamicValue.cpp +++ b/lldb/source/Core/ValueObjectDynamicValue.cpp @@ -127,7 +127,10 @@ ValueObjectDynamicValue::GetByteSize() { const bool success = UpdateValueIfNeeded(false); if (success && m_dynamic_type_info.HasType()) - return m_value.GetValueByteSize(nullptr); + { + ExecutionContext exe_ctx (GetExecutionContextRef()); + return m_value.GetValueByteSize(nullptr, &exe_ctx); + } else return m_parent->GetByteSize(); } |