File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
test/SILOptimizer/lifetime_dependence Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ public func testTrivialInoutBorrow(p: inout UnsafePointer<Int>) -> Span<Int> {
417417
418418private let immortalInt = 0
419419
420- private let immortalString = " "
420+ private let immortalStrings : [ String ] = [ ]
421421
422422@lifetime ( immortal)
423423func testImmortalInt( ) -> Span < Int > {
@@ -427,10 +427,10 @@ func testImmortalInt() -> Span<Int> {
427427}
428428
429429@lifetime ( immortal)
430- func testImmortalString ( ) -> Span < String > {
431- let nilBasedBuffer = UnsafeBufferPointer < String > ( start: nil , count: 0 )
430+ func testImmortalStrings ( ) -> Span < [ String ] > {
431+ let nilBasedBuffer = UnsafeBufferPointer < [ String ] > ( start: nil , count: 0 )
432432 let span = Span ( base: nilBasedBuffer. baseAddress, count: nilBasedBuffer. count)
433- return _overrideLifetime ( span, borrowing: immortalString )
433+ return _overrideLifetime ( span, borrowing: immortalStrings )
434434}
435435
436436let ptr = UnsafePointer < Int > ( bitPattern: 1 ) !
You can’t perform that action at this time.
0 commit comments