|
@@ -18155,7 +18155,7 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup)
|
|
{
|
|
{
|
|
// If we hot swap, we want to make sure at least one method refers to this extern method so it gets pulled in
|
|
// If we hot swap, we want to make sure at least one method refers to this extern method so it gets pulled in
|
|
// incase it gets called later by some hot-loaded coded
|
|
// incase it gets called later by some hot-loaded coded
|
|
- if (mCompiler->mOptions.mAllowHotSwapping)
|
|
|
|
|
|
+ if ((mCompiler->mOptions.mAllowHotSwapping) && (mCurMethodInstance->mIRFunction) && (!mCurMethodInstance->mIRFunction.IsFake()))
|
|
CreateFakeCallerMethod(mangledName);
|
|
CreateFakeCallerMethod(mangledName);
|
|
mBfIRBuilder->Func_DeleteBody(mCurMethodInstance->mIRFunction);
|
|
mBfIRBuilder->Func_DeleteBody(mCurMethodInstance->mIRFunction);
|
|
}
|
|
}
|