Parcourir la source

PopulateHotTypeDataVTable manged name fix

Brian Fiete il y a 1 an
Parent
commit
887cbc3fa3
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      IDEHelper/Compiler/BfContext.cpp

+ 6 - 0
IDEHelper/Compiler/BfContext.cpp

@@ -1688,6 +1688,12 @@ void BfContext::PopulateHotTypeDataVTable(BfTypeInstance* typeInstance)
 			methodInstance = parentVirtualMethod;
 		}*/
 
+		if ((methodInstance->mMethodInfoEx == NULL) || (methodInstance->mMethodInfoEx->mMangledName.IsEmpty()))
+		{
+			// This should not occur, we should have build these mangled names already
+			EnsureHotMangledVirtualMethodName(methodInstance);
+		}
+
 		BF_ASSERT(!methodInstance->mMethodInfoEx->mMangledName.IsEmpty());
 
 		auto& entry = hotTypeData->mVTableEntries[vIdx];