Allow multi-dimensional arrays in interfaces.

This commit is contained in:
chriseth 2017-08-07 12:41:45 +02:00
parent 4d9790b6d5
commit 77b26552b1

View File

@ -1529,8 +1529,6 @@ TypePointer ArrayType::interfaceType(bool _inLibrary) const
TypePointer baseExt = m_baseType->interfaceType(_inLibrary);
if (!baseExt)
return TypePointer();
if (m_baseType->category() == Category::Array && m_baseType->isDynamicallySized())
return TypePointer();
if (isDynamicallySized())
return make_shared<ArrayType>(DataLocation::Memory, baseExt);