Fix some type checks and tests for internal / external function parameters.

This commit is contained in:
chriseth
2016-11-16 14:37:17 +01:00
parent 97a3588701
commit 6f19559de0
3 changed files with 35 additions and 11 deletions
+3 -3
View File
@@ -2075,12 +2075,12 @@ TypePointer FunctionType::encodingType() const
return TypePointer();
}
TypePointer FunctionType::interfaceType(bool _inLibrary) const
TypePointer FunctionType::interfaceType(bool /*_inLibrary*/) const
{
if (m_location != Location::External && m_location != Location::Internal)
return TypePointer();
if (_inLibrary)
return shared_from_this();
if (m_location != Location::External)
return TypePointer();
else
return make_shared<IntegerType>(8 * storageBytes());
}