Skip to content

Commit 9bc4a9b

Browse files
committed
[Test] Backport SIL test to 6.1.
On main type annotations are not always required but on 6.1 they are.
1 parent a609273 commit 9bc4a9b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/SILOptimizer/dead_code_elimination_nontrivial_ossa.sil

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,17 +1429,17 @@ sil [ossa] @uncompletedDeadStrings : $@convention(thin) () -> () {
14291429
cond_br undef, nope, yep
14301430

14311431
nope:
1432-
destroy_value %first
1432+
destroy_value %first : $String
14331433
%second_ptr = string_literal utf8 "second"
14341434
%second_len = integer_literal $Builtin.Word, 6
14351435
%second = apply %makeString(%second_ptr, %second_len) : $@convention(thin) (Builtin.RawPointer, Builtin.Word) -> @owned String
1436-
br this(%second)
1436+
br this(%second : $String)
14371437

14381438
yep:
1439-
br this(%first)
1439+
br this(%first : $String)
14401440

14411441
this(%string : @owned $String):
1442-
destroy_value %string
1442+
destroy_value %string : $String
14431443
%retval = tuple ()
1444-
return %retval
1444+
return %retval : $()
14451445
}

0 commit comments

Comments
 (0)