Skip to content

Commit ce17877

Browse files
authored
Remove unnecessary _fixLifetime
1 parent 4bdc8e3 commit ce17877

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

stdlib/public/core/StringCreate.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ extension String {
124124
// we use it directly. This could be a little faster, but this error path
125125
// shouldn't be perf-sensitive anyway.
126126
let temporaryCodeUnits = Array(result.codeUnits)
127-
defer { _fixLifetime(temporaryCodeUnits) }
128127
return temporaryCodeUnits.withContiguousStorageIfAvailable {
129128
//This could be optimized to use excess tail capacity
130129
return repairUTF8($0, firstKnownBrokenRange: initialRange)

0 commit comments

Comments
 (0)