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

Fixed erroneous readonly of non-sret composite returns (ie: comptime)

This commit is contained in:
Brian Fiete 2021-02-26 08:01:43 -08:00
parent 044d5d5f03
commit e79b8ca9df
2 changed files with 15 additions and 0 deletions

View file

@ -6524,6 +6524,7 @@ void BfModule::Visit(BfForEachStatement* forEachStmt)
{
if (mIsComptimeModule)
{
retVal = LoadValue(retVal);
mBfIRBuilder->CreateStore(retVal.mValue, nextResult.mValue);
}
else