Przeglądaj źródła

Fixed issue with externs in generic types

Brian Fiete 5 lat temu
rodzic
commit
fd1883f6ba
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      IDEHelper/Compiler/BfModule.cpp

+ 1 - 1
IDEHelper/Compiler/BfModule.cpp

@@ -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);
 	}
 	}