mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +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);
|
||||
|
||||
bool isConstSwitch = false;
|
||||
if ((switchValue.mValue.IsConst()) || (switchValue.mType->IsValuelessType()))
|
||||
if ((mBfIRBuilder->IsConstValue(switchValue.mValue)) || (switchValue.mType->IsValuelessType()))
|
||||
{
|
||||
isConstSwitch = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue