File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -4550,10 +4550,19 @@ end_lifetime
4550
4550
4551
4551
sil-instruction ::= 'end_lifetime' sil-operand
4552
4552
4553
+ // Consumes %0 without destroying it
4554
+ end_lifetime %0 : $T
4555
+
4556
+ // Consumes the memory location %1 without destroying it
4557
+ end_lifetime %1 : $*T
4558
+
4553
4559
This instruction signifies the end of it's operand's lifetime to the ownership
4554
4560
verifier. It is inserted by the compiler in instances where it could be illegal
4555
4561
to insert a destroy operation. Ex: if the sil-operand had an undef value.
4556
4562
4563
+ The instruction accepts an object or address type.
4564
+
4565
+ `@owned T `. If its argument is an address type, it's an identity projection.
4557
4566
This instruction is valid only in OSSA and is lowered to a no-op when lowering
4558
4567
to non-OSSA.
4559
4568
You can’t perform that action at this time.
0 commit comments