diff options
author | Louis Dionne <ldionne@apple.com> | 2019-01-08 20:26:56 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-01-08 20:26:56 +0000 |
commit | db6158cc4b9ec43fc9a6c46a65461f1a4338a999 (patch) | |
tree | cf4214f67244ee12529b6c70487fb979709b8433 /include/clang/Basic/AlignedAllocation.h | |
parent | 3b7841f9358527f31acc805a7f9565350cd62afd (diff) | |
download | clang-db6158cc4b9ec43fc9a6c46a65461f1a4338a999.tar.gz |
[Sema] Teach Clang that aligned allocation is not supported with macosx10.13
Summary:
r306722 added diagnostics when aligned allocation is used with deployment
targets that do not support it, but the first macosx supporting aligned
allocation was incorrectly set to 10.13. In reality, the dylib shipped
with macosx10.13 does not support aligned allocation, but the dylib
shipped with macosx10.14 does.
Reviewers: ahatanak
Subscribers: christof, jkorous, dexonsmith, cfe-commits
Differential Revision: https://reviews.llvm.org/D56445
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/AlignedAllocation.h')
-rw-r--r-- | include/clang/Basic/AlignedAllocation.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/AlignedAllocation.h b/include/clang/Basic/AlignedAllocation.h index 9751f41184..c995f47a7d 100644 --- a/include/clang/Basic/AlignedAllocation.h +++ b/include/clang/Basic/AlignedAllocation.h @@ -27,8 +27,8 @@ inline llvm::VersionTuple alignedAllocMinVersion(llvm::Triple::OSType OS) { default: break; case llvm::Triple::Darwin: - case llvm::Triple::MacOSX: // Earliest supporting version is 10.13. - return llvm::VersionTuple(10U, 13U); + case llvm::Triple::MacOSX: // Earliest supporting version is 10.14. + return llvm::VersionTuple(10U, 14U); case llvm::Triple::IOS: case llvm::Triple::TvOS: // Earliest supporting version is 11.0.0. return llvm::VersionTuple(11U); |