Skip to content

Commit 0a40913

Browse files
committed
Fix Bootstrap: diffing
The pass that tracks which control-flow positions are unreachable after infinite loops was migrated to pure Swift in PR #79186. As a result, the C++-only compiler used to bootstrap is unable to determine that the code-location after loops is unreachable. Placing a fatalError after the infinite while loop. Fixes: rdar://160956325
1 parent 97002e1 commit 0a40913

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/Diffing.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ fileprivate struct LinearMyers: ~Copyable {
388388
// Save the right side of the snake for later
389389
stack.append(tailBox)
390390
}
391+
fatalError("Unreachable")
391392
}
392393

393394
fileprivate mutating func middleSnake<T>(

0 commit comments

Comments
 (0)