diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2016-07-18 20:29:14 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2016-07-18 20:29:14 +0000 |
| commit | 4cf27c4d6f15ebc2603128a1426c9684bb1e6b6d (patch) | |
| tree | a5d5470b2cda11f26f121f220bb594844e711f9f /clang/lib/Driver | |
| parent | 258a651f3a361af977bbb8a2daeaa7452142fd92 (diff) | |
| download | bcm5719-llvm-4cf27c4d6f15ebc2603128a1426c9684bb1e6b6d.tar.gz bcm5719-llvm-4cf27c4d6f15ebc2603128a1426c9684bb1e6b6d.zip | |
Allow iOS and tvOS version numbers with 2-digit major version numbers.
rdar://problem/26921601
llvm-svn: 275905
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/ToolChains.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index d3944a7d6e6..ebaa06b6c07 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/lib/Driver/ToolChains.cpp @@ -687,13 +687,13 @@ void Darwin::AddDeploymentTarget(DerivedArgList &Args) const { assert(iOSVersion && "Unknown target platform!"); if (!Driver::GetReleaseVersion(iOSVersion->getValue(), Major, Minor, Micro, HadExtra) || - HadExtra || Major >= 10 || Minor >= 100 || Micro >= 100) + HadExtra || Major >= 100 || Minor >= 100 || Micro >= 100) getDriver().Diag(diag::err_drv_invalid_version_number) << iOSVersion->getAsString(Args); } else if (Platform == TvOS) { if (!Driver::GetReleaseVersion(TvOSVersion->getValue(), Major, Minor, Micro, HadExtra) || HadExtra || - Major >= 10 || Minor >= 100 || Micro >= 100) + Major >= 100 || Minor >= 100 || Micro >= 100) getDriver().Diag(diag::err_drv_invalid_version_number) << TvOSVersion->getAsString(Args); } else if (Platform == WatchOS) { |

