1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed comparison method for sized array of valueless types

This commit is contained in:
Brian Fiete 2020-06-24 15:02:47 -07:00
parent 6ac1496eaa
commit 71087af6d3

View file

@ -4090,7 +4090,11 @@ void BfModule::CreateValueTypeEqualsMethod(bool strictEquals)
auto exitBB = mBfIRBuilder->CreateBlock("exit");
if (compareType->IsSizedArray())
if (compareType->IsValuelessType())
{
// Always equal, nothing to do
}
else if (compareType->IsSizedArray())
{
auto sizedArrayType = (BfSizedArrayType*)compareType;