Skip to content

Commit 4b8db7c

Browse files
authored
Merge pull request swiftlang#30637 from gribozavr/sil-rst-2
Fixed the description of init_existential_value to match the implementation
2 parents 8408c33 + 72931ea commit 4b8db7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/SIL.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4558,11 +4558,11 @@ init_existential_value
45584558
``````````````````````
45594559
::
45604560

4561-
sil-instruction ::= 'init_existential_value' sil-operand ':' sil-type ','
4562-
sil-type
4561+
sil-instruction ::= 'init_existential_value' sil-operand ',' sil-type ','
4562+
sil-type
45634563

4564-
%1 = init_existential_value %0 : $L' : $C, $P
4565-
// %0 must be of loadable type $L', lowered from AST type $L, conforming to
4564+
%1 = init_existential_value %0 : $L, $C, $P
4565+
// %0 must be of loadable type $L, lowered from AST type $C, conforming to
45664566
// protocol(s) $P
45674567
// %1 will be of type $P
45684568

0 commit comments

Comments
 (0)