Use the triple's isiOS() method instead of checking the value directly. NFC.
authorBob Wilson <bob.wilson@apple.com>
Sun, 19 Oct 2014 02:19:27 +0000 (02:19 +0000)
committerBob Wilson <bob.wilson@apple.com>
Sun, 19 Oct 2014 02:19:27 +0000 (02:19 +0000)
llvm-svn: 220158

clang/lib/Basic/Targets.cpp

index b83acee..2798601 100644 (file)
@@ -3589,7 +3589,7 @@ public:
     MaxVectorAlign = 256;
     // The 64-bit iOS simulator uses the builtin bool type for Objective-C.
     llvm::Triple T = llvm::Triple(Triple);
-    if (T.getOS() == llvm::Triple::IOS)
+    if (T.isiOS())
       UseSignedCharForObjCBool = false;
     DescriptionString = "e-m:o-i64:64-f80:128-n8:16:32:64-S128";
   }