Skip to content

Commit 2e8d092

Browse files
committed
Add reduced crasher for SR-7958
Trying to use an argument label in an interpolation can cause various crashes. In swiftlang-1000.0.16.7, these are usually in SILGen; in master at 8f6028d, they’re in CSApply.
1 parent 905a6b4 commit 2e8d092

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: %target-swift-frontend -emit-silgen %s
2+
3+
func foo<U>(_ x: U?) {
4+
_ = "\(anyLabelHere: x)"
5+
}
6+
7+
// This one also crashes in a slightly different place
8+
func bar(_ x: Int?) {
9+
_ = "\(anyLabelHere: x)"
10+
}

0 commit comments

Comments
 (0)