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:
parent
6ac1496eaa
commit
71087af6d3
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue