[all-commits] [llvm/llvm-project] 43bf90: [compiler-rt][Darwin] Fix GetOSMajorKernelOffset()...
Julian Lettner via All-commits
all-commits at lists.llvm.org
Fri Jul 31 11:48:09 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 43bf902c2e3416179cf41eba9307fc74bcba0ecd
https://github.com/llvm/llvm-project/commit/43bf902c2e3416179cf41eba9307fc74bcba0ecd
Author: Julian Lettner <julian.lettner at apple.com>
Date: 2020-07-31 (Fri, 31 Jul 2020)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
Log Message:
-----------
[compiler-rt][Darwin] Fix GetOSMajorKernelOffset() on watchOS
`TARGET_OS_IOS` and `TARGET_OS_WATCH` are not mutually exclusive.
`SANITIZER_IOS` is defined for all embedded platforms. So the branch
for watchOS is never taken. We could fix this by switching the order
of the branches (but the reason for doing so is non-obvious). Instead,
lets use the Darwin-specific `TARGET_OS_*` macros which are mutually
exclusive.
More information about the All-commits
mailing list