diff options
author | Enrico Granata <egranata@apple.com> | 2015-01-28 01:09:45 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2015-01-28 01:09:45 +0000 |
commit | 951bdd5f4121d406bb043e3c2df0b42b737af263 (patch) | |
tree | bc8e863c0b1e596e48e9557d80293d9004fcb6f2 /lldb/source/Core/ValueObjectConstResult.cpp | |
parent | 65b0e7630db3b0eb5c940150eccd55fb797e51bc (diff) | |
download | bcm5719-llvm-951bdd5f4121d406bb043e3c2df0b42b737af263.tar.gz bcm5719-llvm-951bdd5f4121d406bb043e3c2df0b42b737af263.zip |
Move several GetByteSize() calls over to the brave new world of taking an ExecutionContext*
And since enough of these are doing the right thing, add a test case to verify we are doing the right thing with freeze drying ObjC object types
Fixes rdar://18092770
llvm-svn: 227282
Diffstat (limited to 'lldb/source/Core/ValueObjectConstResult.cpp')
-rw-r--r-- | lldb/source/Core/ValueObjectConstResult.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObjectConstResult.cpp b/lldb/source/Core/ValueObjectConstResult.cpp index cbeb2ab47b2..e8b477a74a5 100644 --- a/lldb/source/Core/ValueObjectConstResult.cpp +++ b/lldb/source/Core/ValueObjectConstResult.cpp @@ -256,8 +256,10 @@ ValueObjectConstResult::GetValueType() const uint64_t ValueObjectConstResult::GetByteSize() { + ExecutionContext exe_ctx(GetExecutionContextRef()); + if (m_byte_size == 0) - m_byte_size = GetClangType().GetByteSize(nullptr); + SetByteSize(GetClangType().GetByteSize(&exe_ctx)); return m_byte_size; } |