mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fix to switch fix
This commit is contained in:
parent
49c2a69a45
commit
a3ea79cd62
1 changed files with 1 additions and 1 deletions
|
@ -4464,7 +4464,7 @@ void BfModule::Visit(BfSwitchStatement* switchStmt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (caseValue.mType == switchValue.mType)
|
if ((caseValue.mType == switchValue.mType) || (eqResult))
|
||||||
{
|
{
|
||||||
constantInt = mBfIRBuilder->GetConstant(caseValue.mValue);
|
constantInt = mBfIRBuilder->GetConstant(caseValue.mValue);
|
||||||
if ((constantInt != NULL) && (!mBfIRBuilder->IsInt(constantInt->mTypeCode)))
|
if ((constantInt != NULL) && (!mBfIRBuilder->IsInt(constantInt->mTypeCode)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue