Fixes a gross conditional in my last patch.
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 15 Aug 2013 18:58:00 +0000 (18:58 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 15 Aug 2013 18:58:00 +0000 (18:58 +0000)
- This line, and those below, will be ignored--

M    lib/ARCMigrate/ObjCMT.cpp

llvm-svn: 188473

clang/lib/ARCMigrate/ObjCMT.cpp

index 05a81393eabfa5b81517cd21dd995702eba51850..1e050ac138ef642ac81571d8731feafcac3c2c80 100644 (file)
@@ -515,7 +515,7 @@ static bool UseNSOptionsMacro(ASTContext &Ctx,
         MaxPowerOfTwoVal = EnumVal;
     }
   }
-  return PowerOfTwo ? ((MaxPowerOfTwoVal > 2) ? true : false) : false;
+  return PowerOfTwo && (MaxPowerOfTwoVal > 2);
 }
 
 void ObjCMigrateASTConsumer::migrateProtocolConformance(ASTContext &Ctx,