소스 검색

Fixed unique specialized emit markers

Brian Fiete 3 년 전
부모
커밋
eb59434e67
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      IDEHelper/Compiler/BfCompiler.cpp

+ 4 - 4
IDEHelper/Compiler/BfCompiler.cpp

@@ -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);
 			}
 			}