Skip to content

Commit 8417a81

Browse files
authored
Update tests
1 parent c7ad537 commit 8417a81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/AutoDiff/SILOptimizer/activity_analysis.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ struct HasCoroutineModifyAccessors: Differentiable {
594594
// expected-note @+1 {{when differentiating this function definition}}
595595
func testAccessorCoroutinesRead(_ x: HasCoroutineReadAccessors) -> Float {
596596
// We do not support differentiation of _read accessors
597-
// expected-note @+1 {{cannot differentiate through a direct yield result}}
597+
// expected-note @+1 {{cannot differentiate through a '_read' accessor}}
598598
return x.computed
599599
}
600600

test/AutoDiff/SILOptimizer/differentiation_diagnostics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ struct HasModifyAccessors: Differentiable {
826826
// expected-note @+2 {{when differentiating this function definition}}
827827
@differentiable(reverse)
828828
func testReadAccessorCoroutines(_ x: HasReadAccessors) -> Float {
829-
// expected-note @+1 {{cannot differentiate through a direct yield result}}
829+
// expected-note @+1 {{cannot differentiate through a '_read' accessor}}
830830
return x.computed
831831
}
832832

0 commit comments

Comments
 (0)