1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed invalid autocomplete comptime generation

This commit is contained in:
Brian Fiete 2021-12-20 12:03:09 -05:00
parent 397257eba2
commit f53877dc63
2 changed files with 26 additions and 9 deletions

View file

@ -8470,7 +8470,7 @@ void BfModule::InitTypeInst(BfTypedValue typedValue, BfScopeData* scopeData, boo
mBfIRBuilder->PopulateType(typedValue.mType);
auto vObjectAddr = mBfIRBuilder->CreateInBoundsGEP(typedValue.mValue, 0, 0);
bool isAutocomplete = mCompiler->IsAutocomplete();
BfIRValue vDataRef;
if (!isAutocomplete)
{
@ -18478,6 +18478,11 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup)
{
BP_ZONE_F("BfModule::ProcessMethod %s", BP_DYN_STR(methodInstance->mMethodDef->mName.c_str()));
if (mIsComptimeModule)
{
BF_ASSERT(!mCompiler->IsAutocomplete());
}
if (mAwaitingInitFinish)
FinishInit();