mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Made a different restricted temp address
for return values
This commit is contained in:
parent
963f4fedfc
commit
a2a1b486a2
3 changed files with 8 additions and 6 deletions
|
@ -11102,7 +11102,7 @@ bool BfModule::CheckModifyValue(BfTypedValue& typedValue, BfAstNode* refNode, co
|
|||
return false;
|
||||
}
|
||||
|
||||
if (typedValue.mKind == BfTypedValueKind_TempAddr)
|
||||
if (typedValue.mKind == BfTypedValueKind_RestrictedTempAddr)
|
||||
{
|
||||
Fail(StrFormat("Cannot %s temporary value", modifyType), refNode);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue