]> granicus.if.org Git - clang/commitdiff
Simplify expression, made possible by r199702.
authorNick Lewycky <nicholas@mxc.ca>
Tue, 21 Jan 2014 01:30:30 +0000 (01:30 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 21 Jan 2014 01:30:30 +0000 (01:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199703 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index d3c2b36a4fde64ccb804d313e2b9c2a6c6516b67..7d35bcabfe2406c5805b896c6d1c538ec3f996cb 100644 (file)
@@ -1097,7 +1097,7 @@ bool Sema::IsOverload(FunctionDecl *New, FunctionDecl *Old,
     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;
     }
   }