You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/SILOptimizer/mutable_span_bounds_check_tests.swift
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -175,13 +175,9 @@ public protocol P {
175
175
mutatingfunc mutate(_ other:Self)
176
176
}
177
177
178
-
// TODO: Ensure end_cow_mutation_addr is not inserted within the loop
179
-
// This happens because MutableSpan's subscript is implemented with unsafe addressors which introduce mark_dependence [unresolved].
180
-
// This triggers lifetime-dependence-scope-fixup which unnecessarily inserts end_cow_mutation_addr due to the conservative analysis of `mayHaveMutableSpan` on generic types.
181
-
// TODO: Improve `mayHaveMutableSpan` to avoid this.
182
178
// CHECK-LABEL: sil @$s31mutable_span_bounds_check_tests0a1_B7_doubleyys11MutableSpanVyxGzAA1PRzlF :
183
179
// CHECK-SIL: bb3({{.*}}):
184
-
// TODO-CHECK-NOT: end_cow_mutation
180
+
// CHECK-NOT: end_cow_mutation
185
181
// CHECK-LABEL: } // end sil function '$s31mutable_span_bounds_check_tests0a1_B7_doubleyys11MutableSpanVyxGzAA1PRzlF'
0 commit comments