mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed ref iteration over valueless types
This commit is contained in:
parent
1117aa9b8a
commit
b1f741b1f0
1 changed files with 1 additions and 1 deletions
|
@ -6462,7 +6462,7 @@ void BfModule::Visit(BfForEachStatement* forEachStmt)
|
||||||
}
|
}
|
||||||
nextVal = Cast(forEachStmt->mCollectionExpression, nextVal, varType, BfCastFlags_Explicit);
|
nextVal = Cast(forEachStmt->mCollectionExpression, nextVal, varType, BfCastFlags_Explicit);
|
||||||
nextVal = LoadValue(nextVal);
|
nextVal = LoadValue(nextVal);
|
||||||
if (nextVal)
|
if ((nextVal) && (!nextVal.mType->IsValuelessType()))
|
||||||
mBfIRBuilder->CreateStore(nextVal.mValue, varInst);
|
mBfIRBuilder->CreateStore(nextVal.mValue, varInst);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue