Fix hidden-overload in Types and remove CMake hack

This commit is contained in:
Nikola Matic
2023-05-09 19:33:23 +02:00
parent d370f53b7e
commit 3bab14747e
4 changed files with 7 additions and 12 deletions
+2 -2
View File
@@ -1694,7 +1694,7 @@ bool ArrayType::operator==(Type const& _other) const
return false;
ArrayType const& other = dynamic_cast<ArrayType const&>(_other);
if (
!ReferenceType::operator==(other) ||
!equals(other) ||
other.isByteArray() != isByteArray() ||
other.isString() != isString() ||
other.isDynamicallySized() != isDynamicallySized()
@@ -2204,7 +2204,7 @@ bool StructType::operator==(Type const& _other) const
if (_other.category() != category())
return false;
StructType const& other = dynamic_cast<StructType const&>(_other);
return ReferenceType::operator==(other) && other.m_struct == m_struct;
return equals(other) && other.m_struct == m_struct;
}
+1 -1
View File
@@ -803,7 +803,7 @@ public:
/// if the type has an interfaceType.
virtual BoolResult validForLocation(DataLocation _loc) const = 0;
bool operator==(ReferenceType const& _other) const
bool equals(ReferenceType const& _other) const
{
return location() == _other.location() && isPointer() == _other.isPointer();
}