1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +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

@ -536,6 +536,7 @@ enum BfTypedValueKind
BfTypedValueKind_Addr,
BfTypedValueKind_ReadOnlyAddr,
BfTypedValueKind_TempAddr,
BfTypedValueKind_RestrictedTempAddr,
BfTypedValueKind_ReadOnlyTempAddr,
BfTypedValueKind_ThisAddr,
BfTypedValueKind_BaseAddr,
@ -647,7 +648,7 @@ public:
bool IsTempAddr() const
{
return ((mKind == BfTypedValueKind_ReadOnlyTempAddr) || (mKind == BfTypedValueKind_TempAddr));
return ((mKind == BfTypedValueKind_ReadOnlyTempAddr) || (mKind == BfTypedValueKind_RestrictedTempAddr) || (mKind == BfTypedValueKind_TempAddr));
}
bool IsReadOnly() const
@ -727,6 +728,7 @@ public:
mKind = BfTypedValueKind_ReadOnlyAddr;
break;
case BfTypedValueKind_TempAddr:
case BfTypedValueKind_RestrictedTempAddr:
mKind = BfTypedValueKind_ReadOnlyTempAddr;
break;
default: