[Lldb-commits] [lldb] r147906 - /lldb/trunk/source/Expression/IRInterpreter.cpp

Sean Callanan scallanan at apple.com
Tue Jan 10 17:36:21 PST 2012


Author: spyffe
Date: Tue Jan 10 19:36:21 2012
New Revision: 147906

URL: http://llvm.org/viewvc/llvm-project?rev=147906&view=rev
Log:
If the size of a type can't be determined, default
to assume it's of pointer size.

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

Modified: lldb/trunk/source/Expression/IRInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRInterpreter.cpp?rev=147906&r1=147905&r2=147906&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRInterpreter.cpp (original)
+++ lldb/trunk/source/Expression/IRInterpreter.cpp Tue Jan 10 19:36:21 2012
@@ -277,7 +277,7 @@
         if (i == m_memory.end())
             return Region();
         
-        size_t size = m_target_data.getTypeStoreSize(type);
+        size_t size = (type->isSized() ? m_target_data.getTypeStoreSize(type) : m_target_data.getPointerSize());
                 
         return Region(*i, addr, size);
     }





More information about the lldb-commits mailing list