mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 08:58:00 +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);
|
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