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

Fixed namespace references in GetSymbolReferences

This commit is contained in:
Brian Fiete 2022-05-16 07:45:25 -07:00
parent 2432ab4921
commit edfdf7e606
2 changed files with 2 additions and 2 deletions

View file

@ -4957,7 +4957,7 @@ void BfCompiler::GetSymbolReferences()
auto typeDef = lookupKV.mValue.mTypeDef; auto typeDef = lookupKV.mValue.mTypeDef;
if ((typeDef != NULL) && (typeDef->mNamespace.StartsWith(mResolvePassData->mSymbolReferenceNamespace))) if ((typeDef != NULL) && (typeDef->mNamespace.StartsWith(mResolvePassData->mSymbolReferenceNamespace)))
{ {
rebuildTypeInstList.Add(typeInst); AddToRebuildTypeList(typeInst, rebuildTypeInstList);
} }
} }
} }

View file

@ -8983,7 +8983,7 @@ BfGenericParamInstance* BfModule::GetGenericParamInstance(BfGenericParamType* ty
{ {
if (type->mGenericParamKind == BfGenericParamKind_Method) if (type->mGenericParamKind == BfGenericParamKind_Method)
{ {
if ((mCurMethodInstance->mMethodInfoEx == NULL) || (type->mGenericParamIdx >= mCurMethodInstance->mMethodInfoEx->mGenericParams.mSize)) if ((mCurMethodInstance == NULL) || (mCurMethodInstance->mMethodInfoEx == NULL) || (type->mGenericParamIdx >= mCurMethodInstance->mMethodInfoEx->mGenericParams.mSize))
{ {
FatalError("Invalid GetGenericParamInstance method generic param"); FatalError("Invalid GetGenericParamInstance method generic param");
return NULL; return NULL;