1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed sized array const-lookup dependency issue

This commit is contained in:
Brian Fiete 2021-10-13 12:09:12 -07:00
parent 1e3d0308bf
commit 8a32ce5a69
6 changed files with 18 additions and 4 deletions

View file

@ -3365,6 +3365,12 @@ void BfModule::AddDependency(BfType* usedType, BfType* userType, BfDependencyMap
if (usedType == userType)
return;
if (((flags & BfDependencyMap::DependencyFlag_ConstValue) != 0) && (mContext->mCurTypeState != NULL) && (mContext->mCurTypeState->mResolveKind == BfTypeState::ResolveKind_FieldType))
{
// This can be an `int32[UsedType.cVal]` type reference
flags = (BfDependencyMap::DependencyFlags)(flags | BfDependencyMap::DependencyFlag_ValueTypeSizeDep);
}
if ((mCurMethodInstance != NULL) && (mCurMethodInstance->mIsAutocompleteMethod))
{
if (userType->IsMethodRef())