summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/Sema/SemaOverload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index d3c2b36a4fd..7d35bcabfe2 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/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<EnableIfAttr>(*Cand2I)->getCond()->Profile(Cand2ID,
S.getASTContext(), true);
- if (!(Cand1ID == Cand2ID))
+ if (Cand1ID != Cand2ID)
return false;
}
}
OpenPOWER on IntegriCloud