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:
parent
044d5d5f03
commit
e79b8ca9df
2 changed files with 15 additions and 0 deletions
|
@ -6524,6 +6524,7 @@ void BfModule::Visit(BfForEachStatement* forEachStmt)
|
|||
{
|
||||
if (mIsComptimeModule)
|
||||
{
|
||||
retVal = LoadValue(retVal);
|
||||
mBfIRBuilder->CreateStore(retVal.mValue, nextResult.mValue);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue