1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Improved comptime circular data reference issues

This commit is contained in:
Brian Fiete 2025-01-18 09:31:29 -08:00
parent 910f560380
commit 79e98fe9f7
7 changed files with 161 additions and 25 deletions

View file

@ -1183,10 +1183,10 @@ void BfMSMangler::AddTypeStart(MangleContext& mangleContext, StringImpl& name, B
if ((type->IsEnum()) && (type->IsTypedPrimitive()))
{
auto unreifiedModule = mangleContext.GetUnreifiedModule();
if (unreifiedModule != NULL)
unreifiedModule->PopulateType(type, BfPopulateType_Data);
BF_ASSERT(type->mSize >= 0);
if (type->mDefineState >= BfTypeDefineState_Defined)
{
BF_ASSERT(type->mSize >= 0);
}
// The enum size is supposed to be encoded, but VC always uses '4'
//name += "W";