Skip to content

Commit 5cc65ec

Browse files
author
Davide Italiano
committed
[DebugInfo] Only run this test when the shadow copy is happening.
The optimizations kick in only on some architectures, and elsewhere this particular sequence is not emitted. <rdar://problem/41439607>
1 parent 429a35f commit 5cc65ec

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/DebugInfo/guard-let.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ public func f(_ i : Int?)
2121
use(val)
2222
}
2323

24-
// With large type optimizations the string is passed indirectly on i386 so
25-
// there is no shadow copy happening.
24+
// With large type optimizations the string is passed indirectly on the
25+
// following architectures so there is no shadow copy happening. As this
26+
// tests that we're emitting the DI correctly, we can skip running on them.
2627
// UNSUPPORTED: CPU=i386
28+
// UNSUPPORTED: CPU=armv7
29+
// UNSUPPORTED: CPU=armv7s
30+
// UNSUPPORTED: CPU=armv7k
2731

2832
public func g(_ s : String?)
2933
{

0 commit comments

Comments
 (0)