1
0
Fork 0
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:
Brian Fiete 2020-07-01 06:14:43 -07:00
parent 963f4fedfc
commit a2a1b486a2
3 changed files with 8 additions and 6 deletions

View file

@ -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;