summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2014-01-21 01:30:30 +0000
committerNick Lewycky <nicholas@mxc.ca>2014-01-21 01:30:30 +0000
commitd950ae74a36190889a871fde7bfdf56bfd6dc7c8 (patch)
tree583c475417ee4fcd3d35dac14ca9b8cfbe1997bf
parent47a79816b8c597b93528b21f10d8e8319fbcfa12 (diff)
downloadbcm5719-llvm-d950ae74a36190889a871fde7bfdf56bfd6dc7c8.tar.gz
bcm5719-llvm-d950ae74a36190889a871fde7bfdf56bfd6dc7c8.zip
Simplify expression, made possible by r199702.
llvm-svn: 199703
-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