1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Properly rebuild operatorInfo table

This commit is contained in:
Brian Fiete 2020-09-20 23:01:15 -07:00
parent c76c19e852
commit f0a6ec4870

View file

@ -1041,6 +1041,9 @@ void BfContext::RebuildType(BfType* type, bool deleteOnDemandTypes, bool rebuild
typeInst->mStaticSearchMap.Clear();
typeInst->mInterfaces.Clear();
typeInst->mInterfaceMethodTable.Clear();
for (auto operatorInfo : typeInst->mOperatorInfo)
delete operatorInfo;
typeInst->mOperatorInfo.Clear();
typeInst->mMethodInstanceGroups.Clear();
typeInst->mFieldInstances.Clear();
for (auto methodInst : typeInst->mInternalMethods)