mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 06:14:10 +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)
|
void BfModule::DoTypeInstanceMethodProcessing(BfTypeInstance* typeInstance)
|
||||||
{
|
{
|
||||||
|
if (typeInstance->IsDeleting())
|
||||||
|
{
|
||||||
|
BF_ASSERT(typeInstance->IsOnDemand());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeInstance->IsSpecializedByAutoCompleteMethod())
|
if (typeInstance->IsSpecializedByAutoCompleteMethod())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -6694,6 +6700,7 @@ BfUnknownSizedArrayType* BfModule::CreateUnknownSizedArrayType(BfType* resolvedT
|
||||||
BfPointerType* BfModule::CreatePointerType(BfType* resolvedType)
|
BfPointerType* BfModule::CreatePointerType(BfType* resolvedType)
|
||||||
{
|
{
|
||||||
BF_ASSERT(!resolvedType->IsVar());
|
BF_ASSERT(!resolvedType->IsVar());
|
||||||
|
BF_ASSERT_REL(!resolvedType->IsDeleting());
|
||||||
|
|
||||||
auto pointerType = mContext->mPointerTypePool.Get();
|
auto pointerType = mContext->mPointerTypePool.Get();
|
||||||
pointerType->mContext = mContext;
|
pointerType->mContext = mContext;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue