File tree 2 files changed +2
-2
lines changed
test/AutoDiff/SILOptimizer 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -594,7 +594,7 @@ struct HasCoroutineModifyAccessors: Differentiable {
594
594
// expected-note @+1 {{when differentiating this function definition}}
595
595
func testAccessorCoroutinesRead( _ x: HasCoroutineReadAccessors ) -> Float {
596
596
// 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 }}
598
598
return x. computed
599
599
}
600
600
Original file line number Diff line number Diff line change @@ -826,7 +826,7 @@ struct HasModifyAccessors: Differentiable {
826
826
// expected-note @+2 {{when differentiating this function definition}}
827
827
@differentiable ( reverse)
828
828
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 }}
830
830
return x. computed
831
831
}
832
832
You can’t perform that action at this time.
0 commit comments