Skip to content

Commit 598e191

Browse files
authored
Merge pull request #2312 from apple/load-unaligned
load => loadUnaligned
2 parents bcd4772 + a5315ff commit 598e191

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)