]> granicus.if.org Git - clang/commitdiff
Roll logic into a single if statement, per David's suggestion.
authorChad Rosier <mcrosier@apple.com>
Wed, 9 May 2012 18:55:57 +0000 (18:55 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 9 May 2012 18:55:57 +0000 (18:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156502 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index 395d22ec6b750ff424a8d8d095dbf9764fad4459..40c4ae1e5fa49e0cdd1cca5bfd87db5fd9adc432 100644 (file)
@@ -528,10 +528,9 @@ void Darwin::AddDeploymentTarget(DerivedArgList &Args) const {
 
     // If no OSX or iOS target has been specified and we're compiling for armv7,
     // go ahead as assume we're targeting iOS.
-    if (OSXTarget.empty() && iOSTarget.empty())
-      if (getDarwinArchName(Args) == "armv7") {
+    if (OSXTarget.empty() && iOSTarget.empty() &&
+        getDarwinArchName(Args) == "armv7")
         iOSTarget = iOSVersionMin;
-      }
 
     // Handle conflicting deployment targets
     //