Skip to content

Commit 66c4c96

Browse files
committed
---
yaml --- r: 343199 b: refs/heads/master-rebranch c: 6fd7db8 h: refs/heads/master i: 343197: 7153ba2 343195: 18cc0a6 343191: ea3cd26 343183: 3f8d1ca 343167: b57f92a
1 parent 64d1eeb commit 66c4c96

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
14551455
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
14561456
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
14571457
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1458-
refs/heads/master-rebranch: b35559ea1c302ed9753df7d6f973cb475f535a9a
1458+
refs/heads/master-rebranch: 6fd7db87ac1e1e7c85c4303ef75ed92aa778098f
14591459
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
14601460
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
14611461
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// RUN: %target-swift-frontend -emit-ir -parse-sil %s -module-name Swift -parse-stdlib | %FileCheck %s
2+
3+
import Builtin
4+
5+
struct MyInt {
6+
var value: Builtin.Int32
7+
}
8+
9+
// CHECK-LABEL: define swiftcc i1 @isConcrete_true() {{.*}} {
10+
// CHECK-NEXT: entry:
11+
// CHECK-NEXT: ret i1 true
12+
// CHECK-NEXT: }
13+
sil @isConcrete_true : $@convention(thin) (@thin MyInt.Type) -> Builtin.Int1 {
14+
bb0(%0 : $@thin MyInt.Type):
15+
%1 = builtin "isConcrete"(%0 : $@thin MyInt.Type) : $Builtin.Int1
16+
return %1 : $Builtin.Int1
17+
}
18+
19+
// CHECK-LABEL: define swiftcc i1 @isConcrete_false(%swift.type* %T) {{.*}} {
20+
// CHECK-NEXT: entry:
21+
// CHECK: ret i1 false
22+
// CHECK-NEXT: }
23+
sil @isConcrete_false : $@convention(thin) <T> (@thin T.Type) -> Builtin.Int1 {
24+
bb0(%0 : $@thin T.Type):
25+
%1 = builtin "isConcrete"<T>(%0 : $@thin T.Type) : $Builtin.Int1
26+
return %1 : $Builtin.Int1
27+
}

0 commit comments

Comments
 (0)