[Lldb-commits] [lldb] r279098 - Fixed a problem where we failed to get the size of an Objective-C type.

Sean Callanan via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 18 10:45:50 PDT 2016


Author: spyffe
Date: Thu Aug 18 12:45:50 2016
New Revision: 279098

URL: http://llvm.org/viewvc/llvm-project?rev=279098&view=rev
Log:
Fixed a problem where we failed to get the size of an Objective-C type.

<rdar://problem/27897056>

Modified:
    lldb/trunk/source/Expression/Materializer.cpp

Modified: lldb/trunk/source/Expression/Materializer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/Materializer.cpp?rev=279098&r1=279097&r2=279098&view=diff
==============================================================================
--- lldb/trunk/source/Expression/Materializer.cpp (original)
+++ lldb/trunk/source/Expression/Materializer.cpp Thu Aug 18 12:45:50 2016
@@ -818,7 +818,9 @@ public:
 
             const lldb::addr_t load_addr = process_address + m_offset;
 
-            size_t byte_size = m_type.GetByteSize(nullptr);
+            ExecutionContextScope *exe_scope = map.GetBestExecutionContextScope();
+
+            size_t byte_size = m_type.GetByteSize(exe_scope);
             size_t bit_align = m_type.GetTypeBitAlign();
             size_t byte_align = (bit_align + 7) / 8;
 




More information about the lldb-commits mailing list