Skip to content

Commit 3786720

Browse files
committed
Work Around SIL Crash
There appears to be an unhandled case where a _read accessor yields the result of an unsafe addressor. rdar://102247545 tracks the SIL-side problem. For now, swap the _read access for a plain getter.
1 parent 7b008fe commit 3786720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftSyntax/Raw/RawSyntax.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public struct RawSyntax {
133133
}
134134

135135
internal var payload: RawSyntaxData.Payload {
136-
_read { yield rawData.payload }
136+
get { rawData.payload }
137137
}
138138
}
139139

0 commit comments

Comments
 (0)