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

Handle invalidated inlining requests, comptime alias rebuilds

This commit is contained in:
Brian Fiete 2022-07-28 15:25:41 -04:00
parent b1e1720f9d
commit 1806cb923b
5 changed files with 93 additions and 41 deletions

View file

@ -3982,6 +3982,17 @@ int BfResolvedTypeSet::DoHash(BfTypeReference* typeRef, LookupContext* ctx, BfHa
{
ctx->mHadVar = true;
cachedResolvedType = ctx->mModule->GetPrimitiveType(BfTypeCode_Var);
auto typeState = ctx->mModule->mContext->mCurTypeState;
if ((typeState != NULL) && (typeState->mType != NULL) && (typeState->mType->IsTypeInstance()))
{
auto typeInst = typeState->mType->ToTypeInstance();
if (typeInst->mDefineState == BfTypeDefineState_ResolvingBaseType)
{
// Make sure we regenerate this type
ctx->mModule->mContext->mFailTypes.TryAdd(typeState->mType->ToTypeInstance(), BfFailKind_Deep);
}
}
}
else if (BfIRConstHolder::IsInt(constant->mTypeCode))
{