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:
parent
cbe398b548
commit
faaae112b5
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue