mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fixed const quality check
This commit is contained in:
parent
7458a90b5b
commit
a713905411
1 changed files with 4 additions and 1 deletions
|
@ -392,7 +392,10 @@ int BfIRConstHolder::CheckConstEquality(BfIRValue lhs, BfIRValue rhs)
|
||||||
{
|
{
|
||||||
int rhsZero = IsZero(rhs);
|
int rhsZero = IsZero(rhs);
|
||||||
if (rhsZero != -1)
|
if (rhsZero != -1)
|
||||||
return (lhsZero == rhsZero) ? 1 : 0;
|
{
|
||||||
|
if (lhsZero || rhsZero)
|
||||||
|
return (lhsZero == rhsZero) ? 1 : 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (constLHS->mTypeCode != constRHS->mTypeCode)
|
if (constLHS->mTypeCode != constRHS->mTypeCode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue