Skip to content

Commit e722fad

Browse files
committed
Change a test to match current output.
It was actually testing that we properly handle something related to debug info. With subsequent changes, this causes a crash since it doesn't match the expected output. (cherry picked from commit d10573a)
1 parent 32cb943 commit e722fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/SILOptimizer/moveonly_addresschecker.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ sil [ossa] @test_in_use : $@convention(thin) () -> () {
526526
%9 = function_ref @getNonTrivialStruct : $@convention(thin) () -> @owned NonTrivialStruct
527527
%10 = apply %9() : $@convention(thin) () -> @owned NonTrivialStruct
528528
%0 = alloc_stack [moveable_value_debuginfo] $NonTrivialStruct
529-
%2 = mark_must_check [assignable_but_not_consumable] %0 : $*NonTrivialStruct
529+
%2 = mark_must_check [consumable_and_assignable] %0 : $*NonTrivialStruct
530530
store %10 to [init] %2 : $*NonTrivialStruct
531531
%f2 = function_ref @consumeNonTrivialStructAddr : $@convention(thin) (@in NonTrivialStruct) -> ()
532532
apply %f2(%2) : $@convention(thin) (@in NonTrivialStruct) -> ()

0 commit comments

Comments
 (0)