We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71ca3e1 commit 21c9d3aCopy full SHA for 21c9d3a
lib/ASTGen/Sources/ASTGen/StableHasher.swift
@@ -131,12 +131,10 @@ struct StableHasher {
131
132
@inline(__always)
133
mutating func combine(_ value: UInt) {
134
-#if _pointerBitWidth(_64)
135
- combine(UInt64(truncatingIfNeeded: value))
136
-#elseif _pointerBitWidth(_32)
+#if arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32) // FIXME: Adopt _pointerBitWidth(_:).
137
combine(UInt32(truncatingIfNeeded: value))
138
#else
139
-#error("Unknown platform")
+ combine(UInt64(truncatingIfNeeded: value))
140
#endif
141
}
142
0 commit comments