From 0b48e7c6bd8368232322ab484708577483a54996 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Thu, 15 Aug 2013 18:58:00 +0000 Subject: [PATCH] Fixes a gross conditional in my last patch. - This line, and those below, will be ignored-- M lib/ARCMigrate/ObjCMT.cpp llvm-svn: 188473 --- clang/lib/ARCMigrate/ObjCMT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/ARCMigrate/ObjCMT.cpp b/clang/lib/ARCMigrate/ObjCMT.cpp index 05a81393eabf..1e050ac138ef 100644 --- a/clang/lib/ARCMigrate/ObjCMT.cpp +++ b/clang/lib/ARCMigrate/ObjCMT.cpp @@ -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, -- 2.34.1