1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed zero-sized sized array loop issues

This commit is contained in:
Brian Fiete 2021-01-19 05:40:57 -08:00
parent 966b740e6c
commit c0e19171d4
5 changed files with 83 additions and 11 deletions

View file

@ -19161,9 +19161,7 @@ void BfExprEvaluator::Visit(BfIndexerExpression* indexerExpr)
mResult = BfTypedValue(mModule->mBfIRBuilder->GetFakeVal(), underlyingType, true);
else
{
mResult = mModule->GetDefaultTypedValue(underlyingType);
if (sizedArrayType->mElementCount != 0)
mModule->AssertErrorState();
mResult = mModule->GetDefaultTypedValue(underlyingType, false, BfDefaultValueKind_Addr);
}
}
else if (target.IsAddr())