Skip to content

Commit 123155a

Browse files
Merge pull request #58839 from aschwaighofer/fix_oslogfullopttest_5.7
[5.7] Try to fix test/SILOptimizer/OSLogFullOptTest.swift
2 parents 812868e + c430adf commit 123155a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/SILOptimizer/OSLogFullOptTest.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ func testInterpolationWithMultipleArguments() {
7777
// CHECK: tail call swiftcc i1 @"${{.*}}isLoggingEnabled{{.*}}"()
7878
// CHECK-NEXT: br i1 {{%.*}}, label %[[ENABLED:[0-9]+]], label %[[NOT_ENABLED:[0-9]+]]
7979

80-
// CHECK: [[NOT_ENABLED]]:
81-
// CHECK-NEXT: tail call void @swift_release
82-
// CHECK-NEXT: ret void
83-
8480
// CHECK: [[ENABLED]]:
8581
//
8682
// Header bytes.
@@ -125,6 +121,10 @@ func testInterpolationWithMultipleArguments() {
125121
// CHECK-NEXT: tail call swiftcc void @"${{.*}}_os_log_impl_test{{.*}}"({{.*}}, {{.*}}, {{.*}}, {{.*}}, i8* getelementptr inbounds ([106 x i8], [106 x i8]* @{{.*}}, i{{.*}} 0, i{{.*}} 0), i8* {{(nonnull )?}}[[BUFFER]], i32 20)
126122
// CHECK-NEXT: tail call void @swift_slowDealloc(i8* {{(nonnull )?}}[[BUFFER]]
127123
// CHECK-NEXT: br label %[[NOT_ENABLED]]
124+
125+
// CHECK: [[NOT_ENABLED]]:
126+
// CHECK-NEXT: tail call void @swift_release
127+
// CHECK-NEXT: ret void
128128
}
129129

130130
// CHECK-LABEL: define hidden swiftcc void @"${{.*}}testNSObjectInterpolation
@@ -231,10 +231,6 @@ func testDynamicPrecisionAndAlignment() {
231231
// CHECK: tail call swiftcc i1 @"${{.*}}isLoggingEnabled{{.*}}"()
232232
// CHECK-NEXT: br i1 {{%.*}}, label %[[ENABLED:[0-9]+]], label %[[NOT_ENABLED:[0-9]+]]
233233

234-
// CHECK: [[NOT_ENABLED]]:
235-
// CHECK-NEXT: tail call void @swift_release
236-
// CHECK-NEXT: ret void
237-
238234
// CHECK: [[ENABLED]]:
239235
//
240236
// Header bytes.
@@ -279,6 +275,10 @@ func testDynamicPrecisionAndAlignment() {
279275
// CHECK-NEXT: tail call swiftcc void @"${{.*}}_os_log_impl_test{{.*}}"({{.*}}, {{.*}}, {{.*}}, {{.*}}, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @{{.*}}, i{{.*}} 0, i{{.*}} 0), i8* {{(nonnull )?}}[[BUFFER]], i32 20)
280276
// CHECK-NEXT: tail call void @swift_slowDealloc(i8* {{(nonnull )?}}[[BUFFER]]
281277
// CHECK-NEXT: br label %[[NOT_ENABLED]]
278+
279+
// CHECK: [[NOT_ENABLED]]:
280+
// CHECK-NEXT: tail call void @swift_release
281+
// CHECK-NEXT: ret void
282282
}
283283

284284
// CHECK-LABEL: define hidden swiftcc void @"${{.*}}testStringInterpolation

0 commit comments

Comments
 (0)