mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Better fix for direct autprop optimization
This commit is contained in:
parent
b5aa92ff33
commit
3fddd4f396
6 changed files with 31 additions and 13 deletions
|
@ -557,6 +557,7 @@ public:
|
|||
enum BfTypedValueKind
|
||||
{
|
||||
BfTypedValueKind_Addr,
|
||||
BfTypedValueKind_CopyOnMutateAddr,
|
||||
BfTypedValueKind_ReadOnlyAddr,
|
||||
BfTypedValueKind_TempAddr,
|
||||
BfTypedValueKind_RestrictedTempAddr,
|
||||
|
@ -674,6 +675,11 @@ public:
|
|||
return ((mKind == BfTypedValueKind_ReadOnlyTempAddr) || (mKind == BfTypedValueKind_RestrictedTempAddr) || (mKind == BfTypedValueKind_TempAddr));
|
||||
}
|
||||
|
||||
bool IsCopyOnMutate() const
|
||||
{
|
||||
return (mKind == BfTypedValueKind_CopyOnMutateAddr);
|
||||
}
|
||||
|
||||
bool IsReadOnly() const
|
||||
{
|
||||
switch (mKind)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue