Skip to content

Commit 07cc404

Browse files
committed
[NFC] Tweaked doc for alloc_stack's lexical attr.
Thanks to Erik for catching this. The instruction doesn't have an operand. It creates storage. The lexical attribute indicates that the storage corresponds to a source-level variable.
1 parent 94f4aca commit 07cc404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/SIL.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3105,7 +3105,7 @@ The ``dynamic_lifetime`` attribute specifies that the initialization and
31053105
destruction of the stored value cannot be verified at compile time.
31063106
This is the case, e.g. for conditionally initialized objects.
31073107

3108-
The optional ``lexical`` attribute specifies that the operand corresponds to a
3108+
The optional ``lexical`` attribute specifies that the storage corresponds to a
31093109
local variable in the Swift source.
31103110

31113111
The memory is not retainable. To allocate a retainable box for a value

0 commit comments

Comments
 (0)