mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed enumeration over valueless sized array
This commit is contained in:
parent
7a752a3375
commit
dbfdbdf98a
1 changed files with 1 additions and 1 deletions
|
@ -7183,7 +7183,7 @@ void BfModule::Visit(BfForEachStatement* forEachStmt)
|
|||
arrayItem = LoadValue(arrayItem);
|
||||
arrayItem = Cast(forEachStmt->mCollectionExpression, arrayItem, varType, BfCastFlags_Explicit);
|
||||
arrayItem = LoadValue(arrayItem);
|
||||
if (arrayItem)
|
||||
if ((arrayItem) && (!arrayItem.mType->IsValuelessType()))
|
||||
mBfIRBuilder->CreateStore(arrayItem.mValue, varInst);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue