r199703 - Simplify expression, made possible by r199702.

Nick Lewycky nicholas at mxc.ca
Mon Jan 20 17:30:30 PST 2014


Author: nicholas
Date: Mon Jan 20 19:30:30 2014
New Revision: 199703

URL: http://llvm.org/viewvc/llvm-project?rev=199703&view=rev
Log:
Simplify expression, made possible by r199702.

Modified:
    cfe/trunk/lib/Sema/SemaOverload.cpp

Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=199703&r1=199702&r2=199703&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Mon Jan 20 19:30:30 2014
@@ -1097,7 +1097,7 @@ bool Sema::IsOverload(FunctionDecl *New,
     llvm::FoldingSetNodeID NewID, OldID;
     NewI->getCond()->Profile(NewID, Context, true);
     OldI->getCond()->Profile(OldID, Context, true);
-    if (!(NewID == OldID))
+    if (NewID != OldID)
       return true;
   }
 
@@ -8288,7 +8288,7 @@ isBetterOverloadCandidate(Sema &S,
                                                       S.getASTContext(), true);
       cast<EnableIfAttr>(*Cand2I)->getCond()->Profile(Cand2ID,
                                                       S.getASTContext(), true);
-      if (!(Cand1ID == Cand2ID))
+      if (Cand1ID != Cand2ID)
         return false;
     }
   }





More information about the cfe-commits mailing list