File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1961,7 +1961,7 @@ alloc_stack
1961
1961
```````````
1962
1962
::
1963
1963
1964
- sil-instruction ::= 'alloc_stack' sil-type (',' debug-var-attr)*
1964
+ sil-instruction ::= 'alloc_stack' '[dynamic_lifetime]'? sil-type (',' debug-var-attr)*
1965
1965
1966
1966
%1 = alloc_stack $T
1967
1967
// %1 has type $*T
@@ -1980,6 +1980,10 @@ predecessors, the stack height and order of allocations must be consistent
1980
1980
coming from all predecessor blocks. ``alloc_stack `` allocations must be
1981
1981
deallocated in last-in, first-out stack order.
1982
1982
1983
+ The ``dynamic_lifetime `` attribute specifies that the initialization and
1984
+ destruction of the stored value cannot be verified at compile time.
1985
+ This is the case, e.g. for conditionally initialized objects.
1986
+
1983
1987
The memory is not retainable. To allocate a retainable box for a value
1984
1988
type, use ``alloc_box ``.
1985
1989
You can’t perform that action at this time.
0 commit comments