Skip to content

Commit 90fe494

Browse files
committed
Update KeyPath.swift
1 parent 13b5a44 commit 90fe494

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

stdlib/public/core/KeyPath.swift

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,8 @@ internal struct ComputedArgumentSize {
11301130
#elseif _pointerBitWidth(_32)
11311131
0x1FFF_FFFF
11321132
#else
1133-
#error("Unsupported platform")
1133+
#warning("Unsupported platform")
1134+
fatalError()
11341135
#endif
11351136
}
11361137

@@ -1141,7 +1142,8 @@ internal struct ComputedArgumentSize {
11411142
#elseif _pointerBitWidth(_32)
11421143
0x6000_0000
11431144
#else
1144-
#error("Unsupported platform")
1145+
#warning("Unsupported platform")
1146+
fatalError()
11451147
#endif
11461148
}
11471149

@@ -1152,7 +1154,8 @@ internal struct ComputedArgumentSize {
11521154
#elseif _pointerBitWidth(_32)
11531155
29
11541156
#else
1155-
#error("Unsupported platform")
1157+
#warning("Unsupported platform")
1158+
fatalError()
11561159
#endif
11571160
}
11581161

@@ -1164,7 +1167,8 @@ internal struct ComputedArgumentSize {
11641167
#elseif _pointerBitWidth(_32)
11651168
31
11661169
#else
1167-
#error("Unsupported platform")
1170+
#warning("Unsupported platform")
1171+
fatalError()
11681172
#endif
11691173
}
11701174

@@ -1226,7 +1230,8 @@ internal struct ComputedArgumentSize {
12261230
let shift = value &>> Self.alignmentShift
12271231
return shift == 1 ? 16 : 8
12281232
#else
1229-
#error("Unsupported platform")
1233+
#warning("Unsupported platform")
1234+
fatalError()
12301235
#endif
12311236
}
12321237

@@ -1241,7 +1246,8 @@ internal struct ComputedArgumentSize {
12411246
value &= ~(1 &<< Self.alignmentShift)
12421247
value |= shift
12431248
#else
1244-
#error("Unsupported platform")
1249+
#warning("Unsupported platform")
1250+
fatalError()
12451251
#endif
12461252
}
12471253
}

0 commit comments

Comments
 (0)