diff options
author | Sean Callanan <scallanan@apple.com> | 2012-01-11 01:36:21 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-01-11 01:36:21 +0000 |
commit | 285e4b22f5c5f5966a498a7dcd21ed495d2c395e (patch) | |
tree | 1f8618382c1c78a0ee7d3294b1b26861ae5f2bb8 /lldb/source/Expression/IRInterpreter.cpp | |
parent | fd3b664f302ca0cda4c229cb4c30c51eaf8bc42c (diff) | |
download | bcm5719-llvm-285e4b22f5c5f5966a498a7dcd21ed495d2c395e.tar.gz bcm5719-llvm-285e4b22f5c5f5966a498a7dcd21ed495d2c395e.zip |
If the size of a type can't be determined, default
to assume it's of pointer size.
llvm-svn: 147906
Diffstat (limited to 'lldb/source/Expression/IRInterpreter.cpp')
-rw-r--r-- | lldb/source/Expression/IRInterpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp index dcc1323212a..9bf056f4e51 100644 --- a/lldb/source/Expression/IRInterpreter.cpp +++ b/lldb/source/Expression/IRInterpreter.cpp @@ -277,7 +277,7 @@ public: 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); } |