mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed issue with externs in generic types
This commit is contained in:
parent
b424ce6818
commit
fd1883f6ba
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue