Skip to content

Commit ac376e9

Browse files
committed
Don't use SIMD because it may not exist
1 parent aed7747 commit ac376e9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

stdlib/public/core/KeyPath.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ internal func _abstract(
2424
#endif
2525
}
2626

27+
@_alignment(16)
28+
struct _SixteenAligned {
29+
let x: UInt8
30+
}
31+
2732
// MARK: Type-erased abstract base classes
2833

2934
// NOTE: older runtimes had Swift.AnyKeyPath as the ObjC name.
@@ -179,7 +184,7 @@ public class AnyKeyPath: _AppendKeyPath {
179184
// above. The result of this tail element should just be the 16 byte
180185
// pointer aligned requirement and no extra bytes allocated.
181186
0._builtinWordValue,
182-
SIMD16<Int8>.self,
187+
_SixteenAligned.self,
183188

184189
(bytesWithoutHeader/4)._builtinWordValue,
185190
Int32.self

0 commit comments

Comments
 (0)