[Lldb-commits] [lldb] r147915 - /lldb/trunk/source/Expression/IRInterpreter.cpp
Sean Callanan
scallanan at apple.com
Tue Jan 10 18:23:25 PST 2012
Author: spyffe
Date: Tue Jan 10 20:23:25 2012
New Revision: 147915
URL: http://llvm.org/viewvc/llvm-project?rev=147915&view=rev
Log:
After thinking about it, it doesn't seem right
to make assumptions if the type is unsized. We
just give up (and let the JIT handle it) instead.
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=147915&r1=147914&r2=147915&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRInterpreter.cpp (original)
+++ lldb/trunk/source/Expression/IRInterpreter.cpp Tue Jan 10 20:23:25 2012
@@ -274,10 +274,10 @@
{
MemoryMap::iterator i = LookupInternal(addr);
- if (i == m_memory.end())
+ if (i == m_memory.end() || !type->isSized())
return Region();
-
- size_t size = (type->isSized() ? m_target_data.getTypeStoreSize(type) : m_target_data.getPointerSize());
+
+ size_t size = m_target_data.getTypeStoreSize(type);
return Region(*i, addr, size);
}
More information about the lldb-commits
mailing list