Skip to content

Commit c4b4ecb

Browse files
committed
Add current behavior for alloc_stack explicitly
1 parent 7afd2f5 commit c4b4ecb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/SIL.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,6 +1886,8 @@ Allocates uninitialized memory that is sufficiently aligned on the stack
18861886
to contain a value of type ``T``. The result of the instruction is the address
18871887
of the allocated memory.
18881888

1889+
``alloc_stack`` always allocates memory on the stack even for runtime-sized type.
1890+
18891891
``alloc_stack`` marks the start of the lifetime of the value; the
18901892
allocation must be balanced with a ``dealloc_stack`` instruction to
18911893
mark the end of its lifetime. All ``alloc_stack`` allocations must be

0 commit comments

Comments
 (0)