Skip to content

Commit 783c969

Browse files
committed
Fix Bootstrap: UTF8EncoddingError
The pass that annotated control-flow positions unreachable after an infinite loop was migrated to pure Swift in PR 79186 (#79186). As a result, the C++-only bootstrap compiler is unable to determine that the code-location is unreachable. Placing a fatalError after the infinite while loop. Fixes: rdar://149631113
1 parent 3860023 commit 783c969

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/UTF8EncodingError.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ extension UTF8 {
256256
errors.append(adjustedErr)
257257
}
258258
}
259+
fatalError()
259260
}
260261
}
261262
}

0 commit comments

Comments
 (0)