1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed crash renaming mixins

This commit is contained in:
Brian Fiete 2022-08-25 12:01:13 -07:00
parent cc3837ee49
commit 04f7ee4d2d

View file

@ -19858,6 +19858,12 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup,
}
}
if (mBfIRBuilder == NULL)
{
BfLogSysM("ProcessMethod %p calling EnsureIRBuilder\n", methodInstance);
EnsureIRBuilder();
}
SetAndRestoreValue<bool> prevIgnoreWrites(mBfIRBuilder->mIgnoreWrites, (mWantsIRIgnoreWrites || methodInstance->mIsUnspecialized) && (!forceIRWrites));
if ((HasCompiledOutput()) && (!mBfIRBuilder->mIgnoreWrites))