Skip to content

Commit a5315ff

Browse files
committed
load => loadUnaligned
Same fix as swiftlang/swift-package-manager#6929 since the code in swift-syntax is based on what is in SwiftPM.
1 parent bcd4772 commit a5315ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftCompilerPlugin/CompilerPlugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ internal struct PluginHostConnection: MessageConnection {
198198

199199
// Decode the count.
200200
let count = header.withUnsafeBytes {
201-
UInt64(littleEndian: $0.load(as: UInt64.self))
201+
UInt64(littleEndian: $0.loadUnaligned(as: UInt64.self))
202202
}
203203
guard count >= 2 else {
204204
throw PluginMessageError.invalidPayloadSize

0 commit comments

Comments
 (0)