summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/IRInterpreter.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-01-11 02:23:25 +0000
committerSean Callanan <scallanan@apple.com>2012-01-11 02:23:25 +0000
commitee458a7785966f21c9c8ca9952a3306ee040bb06 (patch)
tree0914f67fd3b930c849d79b7d0b9a4770c67e64c7 /lldb/source/Expression/IRInterpreter.cpp
parentc3549287867e1ab86eb027f216daa6bdc3d8db37 (diff)
downloadbcm5719-llvm-ee458a7785966f21c9c8ca9952a3306ee040bb06.tar.gz
bcm5719-llvm-ee458a7785966f21c9c8ca9952a3306ee040bb06.zip
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. llvm-svn: 147915
Diffstat (limited to 'lldb/source/Expression/IRInterpreter.cpp')
-rw-r--r--lldb/source/Expression/IRInterpreter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp
index 9bf056f4e51..dba09799d5b 100644
--- a/lldb/source/Expression/IRInterpreter.cpp
+++ b/lldb/source/Expression/IRInterpreter.cpp
@@ -274,10 +274,10 @@ public:
{
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);
}
OpenPOWER on IntegriCloud