summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2016-07-18 20:29:14 +0000
committerBob Wilson <bob.wilson@apple.com>2016-07-18 20:29:14 +0000
commit4cf27c4d6f15ebc2603128a1426c9684bb1e6b6d (patch)
treea5d5470b2cda11f26f121f220bb594844e711f9f /clang/lib/Driver
parent258a651f3a361af977bbb8a2daeaa7452142fd92 (diff)
downloadbcm5719-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.cpp4
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) {
OpenPOWER on IntegriCloud