Clone 'v' and set v's allocation to volatile if 'v' owned the memory
| 186 | |
| 187 | // Clone 'v' and set v's allocation to volatile if 'v' owned the memory |
| 188 | SIValue SI_TransferOwnership(SIValue *v) { |
| 189 | SIValue dup = *v; |
| 190 | if(v->allocation == M_SELF) v->allocation = M_VOLATILE; |
| 191 | return dup; |
| 192 | } |
| 193 | |
| 194 | /* Update an SIValue marked as owning its internal allocations so that it instead is sharing them, |
| 195 | * with no responsibility for freeing or guarantee regarding scope. |
no outgoing calls
no test coverage detected