mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed unknown-sized array lookup
This commit is contained in:
parent
a1b162e87f
commit
716f7b3638
1 changed files with 1 additions and 1 deletions
|
@ -17245,7 +17245,7 @@ void BfExprEvaluator::Visit(BfIndexerExpression* indexerExpr)
|
||||||
mModule->PopulateType(underlyingType);
|
mModule->PopulateType(underlyingType);
|
||||||
if (sizedArrayType->IsUnknownSizedArray())
|
if (sizedArrayType->IsUnknownSizedArray())
|
||||||
{
|
{
|
||||||
mResult = mModule->GetDefaultTypedValue(underlyingType);
|
mResult = mModule->GetDefaultTypedValue(underlyingType, false, BfDefaultValueKind_Addr);
|
||||||
}
|
}
|
||||||
else if (sizedArrayType->IsValuelessType())
|
else if (sizedArrayType->IsValuelessType())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue