Skip to content

Commit c14d36f

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 356f625 commit c14d36f

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
@@ -1428,17 +1428,17 @@ sil [ossa] @uncompletedDeadStrings : $@convention(thin) () -> () {
14281428
cond_br undef, nope, yep
14291429

14301430
nope:
1431-
destroy_value %first
1431+
destroy_value %first : $String
14321432
%second_ptr = string_literal utf8 "second"
14331433
%second_len = integer_literal $Builtin.Word, 6
14341434
%second = apply %makeString(%second_ptr, %second_len) : $@convention(thin) (Builtin.RawPointer, Builtin.Word) -> @owned String
1435-
br this(%second)
1435+
br this(%second : $String)
14361436

14371437
yep:
1438-
br this(%first)
1438+
br this(%first : $String)
14391439

14401440
this(%string : @owned $String):
1441-
destroy_value %string
1441+
destroy_value %string : $String
14421442
%retval = tuple ()
1443-
return %retval
1443+
return %retval : $()
14441444
}

0 commit comments

Comments
 (0)