forked from OSchip/llvm-project
If the size of a type can't be determined, default
to assume it's of pointer size. llvm-svn: 147906
This commit is contained in:
parent
fd3b664f30
commit
285e4b22f5
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue