Don't return true on a function with a void return type.
authorChad Rosier <mcrosier@apple.com>
Wed, 9 May 2012 17:38:47 +0000 (17:38 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 9 May 2012 17:38:47 +0000 (17:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156484 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Triple.cpp

index 2a22f754806211a6f2d832eb87fe529a28a81df7..efa2df32657b7267f2bf8d96e6b24e146075a70a 100644 (file)
@@ -609,7 +609,7 @@ void Triple::getiOSVersion(unsigned &Major, unsigned &Minor,
     Major = 0;
     Minor = 0;
     Micro = 0;
-    return true;
+    break;
   case IOS:
     getOSVersion(Major, Minor, Micro);
     // Default to 0.0.