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

Fixed duplicate Equals methods with code generation on structs

This commit is contained in:
Brian Fiete 2021-02-18 07:52:44 -08:00
parent 02f17a889a
commit 18f9fb881f
3 changed files with 33 additions and 6 deletions

View file

@ -5245,7 +5245,7 @@ BfIRValue BfModule::CreateTypeData(BfType* type, Dictionary<int, int>& usedStrin
typeFlags |= BfTypeFlags_Delegate;
if (type->IsFunction())
typeFlags |= BfTypeFlags_Function;
if (type->WantsGCMarking())
if ((type->mDefineState != BfTypeDefineState_CETypeInit) && (type->WantsGCMarking()))
typeFlags |= BfTypeFlags_WantsMarking;
int virtSlotIdx = -1;