Skip to content

Commit d56e169

Browse files
committed
[move-only] Fix up a test slightly.
This test was taken from some generated SIL when the address checker ran /before/ the object checker and before the address checker validated that the object checker also didn't leave any copy_value. This is just cleaning up the source as if the object checker ran on this specific function so the address checker check doesn't trip.
1 parent 61b6383 commit d56e169

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/SILOptimizer/moveonly_addresschecker.sil

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,8 @@ bb0(%arg : @owned $Klass):
283283
%21 = move_value [lexical] %19 : $Klass
284284
%22 = mark_must_check [no_implicit_copy] %21 : $Klass
285285
debug_value %22 : $Klass, let, name "k2"
286-
%24 = copy_value %22 : $Klass
287-
%25 = move_value %24 : $Klass
286+
%25 = move_value %22 : $Klass
288287
destroy_value %25 : $Klass
289-
destroy_value %22 : $Klass
290288
destroy_addr %1 : $*Klass
291289
dealloc_stack %0 : $*Klass
292290
%30 = tuple ()

0 commit comments

Comments
 (0)