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

Removed inline requests during vdata building

This commit is contained in:
Brian Fiete 2020-05-25 05:37:12 -07:00
parent 2f8f936657
commit 92ccadce1e
4 changed files with 17 additions and 13 deletions

View file

@ -616,6 +616,9 @@ bool BfContext::ProcessWorkList(bool onlyReifiedTypes, bool onlyReifiedMethods)
auto module = workItem.mFromModule;
auto methodInstance = workItem.mMethodInstance;
BF_ASSERT(module->mIsModuleMutable);
module->PrepareForIRWriting(methodInstance->GetOwner());
workIdx = mInlineMethodWorkList.RemoveAt(workIdx);
BfLogSysM("Module %p inlining method %p into func:%p\n", module, methodInstance, workItem.mFunc);
@ -647,7 +650,8 @@ bool BfContext::ProcessWorkList(bool onlyReifiedTypes, bool onlyReifiedMethods)
module->mBfIRBuilder->Func_SetLinkage(workItem.mFunc, BfIRLinkageType_Internal);
BF_ASSERT(module->mContext == this);
BF_ASSERT(module->mIsModuleMutable);
BF_ASSERT(module->mIsModuleMutable);
if (module->WantsFinishModule())
{
BfLogSysM("Module finished: %s (from inlining)\n", module->mModuleName.c_str());