Skip to content

Commit 1f0e439

Browse files
author
Davide Italiano
committed
---
yaml --- r: 340479 b: refs/heads/rxwei-patch-1 c: 8e14cc5 h: refs/heads/master i: 340477: 7c82bc2 340475: 565bfaf 340471: 31ddc25 340463: b07e264 340447: 3ada00d 340415: 7451b36 340351: 4dc7c2c 340223: 83858fa 339967: 9abfd9b
1 parent 5882d13 commit 1f0e439

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: 15dd4fe4d12bafc3725c0753571e81e2a7fa23e9
1018+
refs/heads/rxwei-patch-1: 8e14cc51f42e83849a2e64444ffc408b05c0fd94
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/test/DebugInfo/mandatory-inlining-ownership.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1+
// REQUIRES: objc_interop
2+
13
// RUN: %target-swift-frontend -emit-sil %s -Onone -Xllvm \
24
// RUN: -sil-print-after=mandatory-inlining \
35
// RUN: -enable-ownership-stripping-after-serialization \
46
// RUN: -Xllvm -sil-print-debuginfo -o /dev/null 2>&1 | %FileCheck %s
57

6-
// CHECK: begin_borrow {{.*}} : $OSLog, loc {{.*}}, scope 3
7-
// CHECK: tuple (), loc {{.*}}, scope 3
8-
// CHECK: end_borrow %3 : $OSLog, loc {{.*}}, scope 3
8+
// CHECK: begin_borrow {{.*}} : $OSLog, loc {{.*}}, scope 5
9+
// CHECK: tuple (), loc {{.*}}, scope 5
10+
// CHECK: end_borrow %9 : $OSLog, loc {{.*}}, scope 5
911

1012
import os
1113

1214
func bar() {
13-
foo(OSLog.default)
15+
if #available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *) {
16+
foo(OSLog.default)
17+
}
1418
}
1519

1620
@_transparent

0 commit comments

Comments
 (0)