mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fix static payload enum switch isConst
This commit is contained in:
parent
9c79d8aa6c
commit
246c408c72
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