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:
parent
2432ab4921
commit
edfdf7e606
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue