Skip to content

Commit a1f3cb9

Browse files
committed
Add comment on required isConcrete specialization
When calling `Builtin.isConcrete` in SIL, the provided type parameter should be sufficient.
1 parent 6e542bf commit a1f3cb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/IRGen/builtin_isConcrete.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ bb0(%0 : $@thin MyInt.Type):
2222
// CHECK-NEXT: }
2323
sil @isConcrete_false : $@convention(thin) <T> (@thin T.Type) -> Builtin.Int1 {
2424
bb0(%0 : $@thin T.Type):
25+
// FIXME: Explicit specialization is required here when it shouldn't be
2526
%1 = builtin "isConcrete"<T>(%0 : $@thin T.Type) : $Builtin.Int1
2627
return %1 : $Builtin.Int1
2728
}

0 commit comments

Comments
 (0)