We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0d3234 commit df9ae88Copy full SHA for df9ae88
lib/ASTGen/Sources/ASTGen/Bridge.swift
@@ -34,6 +34,7 @@ extension BridgedSourceLoc {
34
) {
35
if let start = buffer.baseAddress,
36
position.utf8Offset >= 0 && position.utf8Offset < buffer.count {
37
+ assert(position.utf8Offset >= 0 && position.utf8Offset < buffer.count)
38
self = SourceLoc_advanced(BridgedSourceLoc(raw: start), SwiftInt(position.utf8Offset))
39
} else {
40
self = nil
0 commit comments