Browse Source

Fixed attempted inlining of virtual methods

Brian Fiete 4 weeks ago
parent
commit
38d64d444d
1 changed files with 1 additions and 1 deletions
  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;