Set the default iOS version to 3.0.
authorChad Rosier <mcrosier@apple.com>
Wed, 9 May 2012 18:23:00 +0000 (18:23 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 9 May 2012 18:23:00 +0000 (18:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156492 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Triple.cpp

index efa2df32657b7267f2bf8d96e6b24e146075a70a..868aa57018289de7951852f0314f2b28c49062ad 100644 (file)
@@ -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;
   }
 }