We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ff7485 + c4b4ecb commit 266f2c8Copy full SHA for 266f2c8
docs/SIL.rst
@@ -1910,9 +1910,7 @@ Allocates uninitialized memory that is sufficiently aligned on the stack
1910
to contain a value of type ``T``. The result of the instruction is the address
1911
of the allocated memory.
1912
1913
-If a type is runtime-sized, the compiler must emit code to potentially
1914
-dynamically allocate memory. So there is no guarantee that the allocated
1915
-memory is really located on the stack.
+``alloc_stack`` always allocates memory on the stack even for runtime-sized type.
1916
1917
``alloc_stack`` marks the start of the lifetime of the value; the
1918
allocation must be balanced with a ``dealloc_stack`` instruction to
0 commit comments