OSDN Git Service

[Sanitizer] Update macOS version checking
authorJulian Lettner <julian.lettner@apple.com>
Tue, 30 Jun 2020 20:19:25 +0000 (13:19 -0700)
committerJulian Lettner <julian.lettner@apple.com>
Fri, 10 Jul 2020 00:28:01 +0000 (17:28 -0700)
commitbed3e1a99b41f5a9525bc0edf12ecbcf63aab0cf
tree31d86781e72592b0429a8bf60c4e11c61879092d
parentf721e0582b158c60c56d2601235b6d60758f4d7a
[Sanitizer] Update macOS version checking

Support macOS 11 in our runtime version checking code and update
`GetMacosAlignedVersionInternal()` accordingly.  This follows the
implementation of `Triple::getMacOSXVersion()` in the Clang driver.

Reviewed By: delcypher

Differential Revision: https://reviews.llvm.org/D82918
compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
compiler-rt/lib/sanitizer_common/tests/sanitizer_mac_test.cpp