From: Bob Wilson Date: Sun, 19 Oct 2014 02:19:27 +0000 (+0000) Subject: Use the triple's isiOS() method instead of checking the value directly. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54108143802867a1dac9bcd4ae2d1a71abf40499;p=clang Use the triple's isiOS() method instead of checking the value directly. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220158 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index b83acee526..2798601a51 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -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"; }