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:
parent
966b740e6c
commit
c0e19171d4
5 changed files with 83 additions and 11 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue