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:
parent
397257eba2
commit
f53877dc63
2 changed files with 26 additions and 9 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue