diff --git a/Sources/SwiftCompilerPlugin/CompilerPlugin.swift b/Sources/SwiftCompilerPlugin/CompilerPlugin.swift index 2e8c2edbd76..30f56c8aa58 100644 --- a/Sources/SwiftCompilerPlugin/CompilerPlugin.swift +++ b/Sources/SwiftCompilerPlugin/CompilerPlugin.swift @@ -210,7 +210,7 @@ internal struct PluginHostConnection: MessageConnection { // Decode the count. let count = header.withUnsafeBytes { - UInt64(littleEndian: $0.load(as: UInt64.self)) + UInt64(littleEndian: $0.loadUnaligned(as: UInt64.self)) } guard count >= 2 else { throw PluginMessageError.invalidPayloadSize