mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
FinishInit check in CreateFunctionFrom
This commit is contained in:
parent
c05191dd7a
commit
ff7a9896cd
1 changed files with 5 additions and 0 deletions
|
@ -1110,6 +1110,8 @@ bool BfModule::IsHotCompile()
|
|||
|
||||
void BfModule::FinishInit()
|
||||
{
|
||||
BfLogSysM("FinishInit %@ %s\n", this, mModuleName.c_str());
|
||||
|
||||
BF_ASSERT(mAwaitingInitFinish);
|
||||
|
||||
auto moduleOptions = GetModuleOptions();
|
||||
|
@ -11483,6 +11485,9 @@ BfIRValue BfModule::CreateFunctionFrom(BfMethodInstance* methodInstance, bool tr
|
|||
return BfIRValue();
|
||||
}
|
||||
|
||||
if ((mAwaitingInitFinish) && (!mBfIRBuilder->mIgnoreWrites))
|
||||
FinishInit();
|
||||
|
||||
auto methodDef = methodInstance->mMethodDef;
|
||||
StringT<4096> methodName;
|
||||
BfMangler::Mangle(methodName, mCompiler->GetMangleKind(), methodInstance);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue