summaryrefslogtreecommitdiff
path: root/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-05-09 18:23:00 +0000
committerChad Rosier <mcrosier@apple.com>2012-05-09 18:23:00 +0000
commit537c2f5b2ae373a602b88789007ea75196795775 (patch)
tree95e481d1d62755b6d0fdbb9b66d0544266efd5f7 /lib/Support/Triple.cpp
parent0d38d3a0005c60f721899475902026a91ef65fad (diff)
downloadllvm-537c2f5b2ae373a602b88789007ea75196795775.tar.gz
llvm-537c2f5b2ae373a602b88789007ea75196795775.tar.bz2
llvm-537c2f5b2ae373a602b88789007ea75196795775.tar.xz
Set the default iOS version to 3.0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r--lib/Support/Triple.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index efa2df3265..868aa57018 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -606,13 +606,15 @@ void Triple::getiOSVersion(unsigned &Major, unsigned &Minor,
// the clang driver combines OS X and IOS support into a common Darwin
// toolchain that wants to know the iOS version number even when targeting
// OS X.
- Major = 0;
+ Major = 3;
Minor = 0;
Micro = 0;
break;
case IOS:
getOSVersion(Major, Minor, Micro);
- // Default to 0.0.
+ // Default to 3.0.
+ if (Major == 0)
+ Major = 3;
break;
}
}