From: Nick Lewycky Date: Tue, 21 Jan 2014 01:30:30 +0000 (+0000) Subject: Simplify expression, made possible by r199702. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61c5a77816956c54c864a3f1cca3cfc9941e15fc;p=clang Simplify expression, made possible by r199702. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199703 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index d3c2b36a4f..7d35bcabfe 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -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(*Cand2I)->getCond()->Profile(Cand2ID, S.getASTContext(), true); - if (!(Cand1ID == Cand2ID)) + if (Cand1ID != Cand2ID) return false; } }