Skip to content

Commit 8459e11

Browse files
committed
Remove check for apple_build_version for hash workaround
Apple's clang fork has the missing commit now, and we can safely use the above codepath.
1 parent bd624d9 commit 8459e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

absl/hash/internal/hash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ class ABSL_DLL MixingHashState : public HashStateBase<MixingHashState> {
11361136
// probably per-build and not per-process.
11371137
ABSL_ATTRIBUTE_ALWAYS_INLINE static uint64_t Seed() {
11381138
#if (!defined(__clang__) || __clang_major__ > 11) && \
1139-
!defined(__apple_build_version__)
1139+
(!defined(__apple_build_version__) || __apple_build_version__ >= 19558921) // Xcode 12
11401140
return static_cast<uint64_t>(reinterpret_cast<uintptr_t>(&kSeed));
11411141
#else
11421142
// Workaround the absence of

0 commit comments

Comments
 (0)