mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Adds payload enum payload descriminator value to reflection info
This commit is contained in:
parent
3ea36817ff
commit
df807dc275
1 changed files with 6 additions and 1 deletions
|
@ -5838,7 +5838,12 @@ BfIRValue BfModule::CreateFieldData(BfFieldInstance* fieldInstance, int customAt
|
||||||
|
|
||||||
BfIRValue constValue;
|
BfIRValue constValue;
|
||||||
BfIRValue constValue2;
|
BfIRValue constValue2;
|
||||||
if (fieldInstance->GetFieldDef()->mIsConst)
|
if (fieldInstance->mIsEnumPayloadCase)
|
||||||
|
{
|
||||||
|
int tagId = -fieldInstance->mDataIdx - 1;
|
||||||
|
constValue = mBfIRBuilder->CreateConst(BfTypeCode_IntPtr, tagId);
|
||||||
|
}
|
||||||
|
else if (fieldInstance->GetFieldDef()->mIsConst)
|
||||||
{
|
{
|
||||||
if (fieldInstance->mConstIdx != -1)
|
if (fieldInstance->mConstIdx != -1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue