Skip to content

Commit bbb21c8

Browse files
committed
SwiftSyntax: Fix resilient build
Address-only types do not support multiple case labels yet.
1 parent 9e8d0ae commit bbb21c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/SwiftSyntax/Diagnostic.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ public enum FixIt: Codable {
109109
/// it is a range with the same start and end location.
110110
var range: SourceRange {
111111
switch self {
112-
case .remove(let range), .replace(let range, _): return range
112+
case .remove(let range): return range
113+
case .replace(let range, _): return range
113114
case .insert(let loc, _): return SourceRange(start: loc, end: loc)
114115
}
115116
}

0 commit comments

Comments
 (0)