mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Merge pull request #2185 from Fusioon/fix-static-enum-switch
Fix static payload enum switch isConst
This commit is contained in:
commit
cbfc091fce
1 changed files with 1 additions and 1 deletions
|
@ -4678,7 +4678,7 @@ void BfModule::Visit(BfSwitchStatement* switchStmt)
|
||||||
BfPrimitiveType* intCoercibleType = GetIntCoercibleType(switchValue.mType);
|
BfPrimitiveType* intCoercibleType = GetIntCoercibleType(switchValue.mType);
|
||||||
|
|
||||||
bool isConstSwitch = false;
|
bool isConstSwitch = false;
|
||||||
if ((switchValue.mValue.IsConst()) || (switchValue.mType->IsValuelessType()))
|
if ((mBfIRBuilder->IsConstValue(switchValue.mValue)) || (switchValue.mType->IsValuelessType()))
|
||||||
{
|
{
|
||||||
isConstSwitch = true;
|
isConstSwitch = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue