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 2aac5d9 commit a3d59b3Copy full SHA for a3d59b3
lib/ASTGen/Sources/ASTGen/Bridge.swift
@@ -30,10 +30,10 @@ extension BridgedSourceLoc {
30
/// Form a source location at the given absolute position in `buffer`.
31
init(
32
at position: AbsolutePosition,
33
- in buffer: UnsafeBufferPointer<UInt8>?
+ in buffer: UnsafeBufferPointer<UInt8>
34
) {
35
- precondition(position.utf8Offset >= 0 && position.utf8Offset < buffer!.count)
36
- self = SourceLoc_advanced(BridgedSourceLoc(raw: buffer!.baseAddress), SwiftInt(position.utf8Offset))
+ precondition(position.utf8Offset >= 0 && position.utf8Offset < buffer.count)
+ self = SourceLoc_advanced(BridgedSourceLoc(raw: buffer.baseAddress!), SwiftInt(position.utf8Offset))
37
}
38
39
0 commit comments