mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +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;
|
continue;
|
||||||
if ((fieldInstance->mIsEnumPayloadCase) && (fieldDef->mName == enumCaseName))
|
if ((fieldInstance->mIsEnumPayloadCase) && (fieldDef->mName == enumCaseName))
|
||||||
{
|
{
|
||||||
if ((!enumType->IsTypeMemberIncluded(fieldDef->mDeclaringType, activeTypeDef, this)) ||
|
if (!IsInSpecializedSection())
|
||||||
(!enumType->IsTypeMemberAccessible(fieldDef->mDeclaringType, activeTypeDef)))
|
{
|
||||||
continue;
|
if ((!enumType->IsTypeMemberIncluded(fieldDef->mDeclaringType, activeTypeDef, this)) ||
|
||||||
|
(!enumType->IsTypeMemberAccessible(fieldDef->mDeclaringType, activeTypeDef)))
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
auto resolvePassData = mCompiler->mResolvePassData;
|
auto resolvePassData = mCompiler->mResolvePassData;
|
||||||
if (resolvePassData != NULL)
|
if (resolvePassData != NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue