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

Comptime rebuild and hot compile fixes

This commit is contained in:
Brian Fiete 2022-01-13 11:40:14 -05:00
parent b49cd5d12a
commit 0c3f9a139d
9 changed files with 52 additions and 25 deletions

View file

@ -2070,16 +2070,20 @@ void BfContext::UpdateRevisedTypes()
}
}
if (typeDef->mDefState == BfTypeDef::DefState_Defined)
auto checkTypeDef = typeDef;
if (typeDef->mEmitParent != NULL)
checkTypeDef = typeDef->mEmitParent;
if (checkTypeDef->mDefState == BfTypeDef::DefState_Defined)
{
BF_ASSERT(typeDef->mNextRevision == NULL);
continue;
}
if (typeDef->mDefState != BfTypeDef::DefState_New)
if (checkTypeDef->mDefState != BfTypeDef::DefState_New)
{
defStateChangedQueue.Add(typeInst);
}
}
}
// We consumed this above