1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

PopulateHotTypeDataVTable manged name fix

This commit is contained in:
Brian Fiete 2024-03-16 18:33:48 -04:00
parent 1334763c62
commit 887cbc3fa3

View file

@ -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];