1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed unique specialized emit markers

This commit is contained in:
Brian Fiete 2022-05-31 11:43:21 -07:00
parent cee266d6e6
commit eb59434e67

View file

@ -9870,7 +9870,7 @@ BF_EXPORT const char* BF_CALLTYPE BfCompiler_GetCollapseRegions(BfCompiler* bfCo
if (typeInst == NULL) if (typeInst == NULL)
continue; continue;
if (typeHashSet.Contains(typeInst->mTypeDef->GetLatest())) if (typeHashSet.Contains(typeInst->mTypeDef->GetDefinition()->GetLatest()))
{ {
if (typeInst->mCeTypeInfo == NULL) if (typeInst->mCeTypeInfo == NULL)
continue; continue;
@ -9893,7 +9893,7 @@ BF_EXPORT const char* BF_CALLTYPE BfCompiler_GetCollapseRegions(BfCompiler* bfCo
auto emitParser = typeInst->mTypeDef->GetLastSource()->ToParser(); auto emitParser = typeInst->mTypeDef->GetLastSource()->ToParser();
Dictionary<int, _EmitSource>* map = NULL; Dictionary<int, _EmitSource>* map = NULL;
emitLocMap.TryAdd(typeDef->GetLatest(), NULL, &map); emitLocMap.TryAdd(typeDef->GetDefinition()->GetLatest(), NULL, &map);
_EmitSource emitSource; _EmitSource emitSource;
emitSource.mEmitParser = emitParser; emitSource.mEmitParser = emitParser;
emitSource.mIsPrimary = false; emitSource.mIsPrimary = false;
@ -9981,7 +9981,7 @@ BF_EXPORT const char* BF_CALLTYPE BfCompiler_GetCollapseRegions(BfCompiler* bfCo
continue; continue;
Dictionary<int, _EmitSource>* map = NULL; Dictionary<int, _EmitSource>* map = NULL;
if (emitLocMap.TryGetValue(typeDef, &map)) if (emitLocMap.TryGetValue(typeDef->GetDefinition(), &map))
{ {
_EmitSource emitSource; _EmitSource emitSource;
emitSource.mEmitParser = emitParser; emitSource.mEmitParser = emitParser;
@ -10045,7 +10045,7 @@ BF_EXPORT const char* BF_CALLTYPE BfCompiler_GetCollapseRegions(BfCompiler* bfCo
} }
}; };
_CheckTypeDef(typeInst->mTypeDef); _CheckTypeDef(typeInst->mTypeDef->GetDefinition());
for (auto partialTypeDef : typeInst->mTypeDef->mPartials) for (auto partialTypeDef : typeInst->mTypeDef->mPartials)
_CheckTypeDef(partialTypeDef); _CheckTypeDef(partialTypeDef);
} }