mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Support case enum member capture in specialized section
This commit is contained in:
parent
2caad245b8
commit
cccf4bfe9a
1 changed files with 6 additions and 3 deletions
|
@ -2888,9 +2888,12 @@ BfTypedValue BfModule::TryCaseEnumMatch(BfTypedValue enumVal, BfTypedValue tagVa
|
|||
continue;
|
||||
if ((fieldInstance->mIsEnumPayloadCase) && (fieldDef->mName == enumCaseName))
|
||||
{
|
||||
if ((!enumType->IsTypeMemberIncluded(fieldDef->mDeclaringType, activeTypeDef, this)) ||
|
||||
(!enumType->IsTypeMemberAccessible(fieldDef->mDeclaringType, activeTypeDef)))
|
||||
continue;
|
||||
if (!IsInSpecializedSection())
|
||||
{
|
||||
if ((!enumType->IsTypeMemberIncluded(fieldDef->mDeclaringType, activeTypeDef, this)) ||
|
||||
(!enumType->IsTypeMemberAccessible(fieldDef->mDeclaringType, activeTypeDef)))
|
||||
continue;
|
||||
}
|
||||
|
||||
auto resolvePassData = mCompiler->mResolvePassData;
|
||||
if (resolvePassData != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue