diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index 51338df5..a1b22f6a 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -19858,6 +19858,12 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup, } } + if (mBfIRBuilder == NULL) + { + BfLogSysM("ProcessMethod %p calling EnsureIRBuilder\n", methodInstance); + EnsureIRBuilder(); + } + SetAndRestoreValue prevIgnoreWrites(mBfIRBuilder->mIgnoreWrites, (mWantsIRIgnoreWrites || methodInstance->mIsUnspecialized) && (!forceIRWrites)); if ((HasCompiledOutput()) && (!mBfIRBuilder->mIgnoreWrites))