summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/IRInterpreter.cpp
diff options
context:
space:
mode:
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