浏览代码

Fixed attempted inlining of virtual methods

Brian Fiete 1 月之前
父节点
当前提交
38d64d444d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      IDEHelper/Compiler/BfModule.cpp

+ 1 - 1
IDEHelper/Compiler/BfModule.cpp

@@ -14634,7 +14634,7 @@ BfModuleMethodInstance BfModule::GetMethodInstance(BfTypeInstance* typeInst, BfM
 		flags = (BfGetMethodInstanceFlags)(flags & ~BfGetMethodInstanceFlag_ForceInline);
 	}
 
-	if (methodDef->mIsExtern)
+	if ((methodDef->mIsExtern) || (methodDef->mIsVirtual))
 		flags = (BfGetMethodInstanceFlags)(flags & ~BfGetMethodInstanceFlag_ForceInline);
 
 	bool processNow = false;