1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Don't attempt comptime emissions in unspecialized generics

This commit is contained in:
Brian Fiete 2022-01-06 11:08:31 -05:00
parent ae399c0ae2
commit 40288eeb3a

View file

@ -4161,7 +4161,11 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
}
bool tryCE = true;
if (typeInstance->mDefineState == BfTypeDefineState_CETypeInit)
if (typeInstance->IsUnspecializedType())
tryCE = false;
if ((typeInstance->mDefineState == BfTypeDefineState_CETypeInit) && (tryCE))
{
if (populateType <= BfPopulateType_AllowStaticMethods)
return;