Skip to content

Commit 127bafd

Browse files
committed
Update tests
1 parent c1792c2 commit 127bafd

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

test/SILOptimizer/consuming_parameter.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ public func async_dead_arg_call(o: consuming AnyObject) async {
1818

1919
// CHECK-LABEL: sil [ossa] @async_dead_arg_call_lexical : {{.*}} {
2020
// CHECK: {{bb[0-9]+}}([[INSTANCE:%[^,]+]] : @noImplicitCopy @_lexical @owned
21-
// CHECK: [[MOVE:%[^,]+]] = move_value [lexical] [[INSTANCE]]
2221
// CHECK: [[EXECUTOR:%[^,]+]] = enum $Optional<Builtin.Executor>, #Optional.none!enumelt
2322
// CHECK: [[CALLEE:%[^,]+]] = function_ref @async_callee
2423
// CHECK: apply [[CALLEE]]()
2524
// CHECK: hop_to_executor [[EXECUTOR]]
26-
// CHECK: destroy_value [[MOVE]]
25+
// CHECK: destroy_value [[INSTANCE]]
2726
// CHECK-LABEL: } // end sil function 'async_dead_arg_call_lexical'
2827
@_silgen_name("async_dead_arg_call_lexical")
2928
public func async_dead_arg_call_lexical(@_noEagerMove o: consuming AnyObject) async {

test/SILOptimizer/sil_combine_protocol_conf.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ public class Other {
124124
// CHECK: [[W1:%.*]] = witness_method $@opened("{{.*}}", any DerivedProtocol) Self, #DerivedProtocol.foo : <Self where Self : DerivedProtocol> (Self) -> () -> Int, [[O1]] : $*@opened("{{.*}}", any DerivedProtocol) Self : $@convention(witness_method: DerivedProtocol) <τ_0_0 where τ_0_0 : DerivedProtocol> (@in_guaranteed τ_0_0) -> Int
125125
// CHECK: apply [[W1]]<@opened("{{.*}}", any DerivedProtocol) Self>([[O1]]) : $@convention(witness_method: DerivedProtocol) <τ_0_0 where τ_0_0 : DerivedProtocol> (@in_guaranteed τ_0_0) -> Int
126126
// CHECK: struct_extract
127-
// CHECK: integer_literal
128127
// CHECK: builtin
129128
// CHECK: tuple_extract
130129
// CHECK: tuple_extract

test/stdlib/move_function.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ tests.test("simpleVarTest") {
9191
expectTrue(_isUnique_native(&x))
9292

9393
var y = x
94-
expectFalse(_isUnique_native(&x))
9594
let _ = consume y
9695
expectTrue(_isUnique_native(&x))
9796
y = Klass()
@@ -101,7 +100,6 @@ tests.test("simpleVarTest") {
101100
tests.test("simpleInoutVarTest") {
102101
func inOutTest(_ x: inout Klass) {
103102
var y = x
104-
expectFalse(_isUnique_native(&x))
105103
let _ = consume y
106104
expectTrue(_isUnique_native(&x))
107105
y = Klass()

0 commit comments

Comments
 (0)