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

Fixed case of deleting tuple mid-compile

This commit is contained in:
Brian Fiete 2022-02-24 11:18:06 -08:00
parent cbe398b548
commit faaae112b5

View file

@ -5326,6 +5326,12 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
void BfModule::DoTypeInstanceMethodProcessing(BfTypeInstance* typeInstance)
{
if (typeInstance->IsDeleting())
{
BF_ASSERT(typeInstance->IsOnDemand());
return;
}
if (typeInstance->IsSpecializedByAutoCompleteMethod())
return;
@ -6694,6 +6700,7 @@ BfUnknownSizedArrayType* BfModule::CreateUnknownSizedArrayType(BfType* resolvedT
BfPointerType* BfModule::CreatePointerType(BfType* resolvedType)
{
BF_ASSERT(!resolvedType->IsVar());
BF_ASSERT_REL(!resolvedType->IsDeleting());
auto pointerType = mContext->mPointerTypePool.Get();
pointerType->mContext = mContext;