summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-22 05:41:57 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-22 05:41:57 +0000
commitdc89ed7da30e882cfdb74968b2a7613e37570409 (patch)
tree1b83df88d1c23613e726209667e5404a877f3870
parent19f24454b516042b618298522e79bf9e6fa5ccbd (diff)
downloadllvm-dc89ed7da30e882cfdb74968b2a7613e37570409.tar.gz
llvm-dc89ed7da30e882cfdb74968b2a7613e37570409.tar.bz2
llvm-dc89ed7da30e882cfdb74968b2a7613e37570409.tar.xz
SparseMultiSet.h: Add suggested parentheses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173128 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/SparseMultiSet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/SparseMultiSet.h b/include/llvm/ADT/SparseMultiSet.h
index 749b5c0e21..7f2a6f7d0b 100644
--- a/include/llvm/ADT/SparseMultiSet.h
+++ b/include/llvm/ADT/SparseMultiSet.h
@@ -267,7 +267,7 @@ public:
bool operator==(const iterator_base &RHS) const {
// end compares equal
if (SMS == RHS.SMS && Idx == RHS.Idx) {
- assert(isEnd() || SparseIdx == RHS.SparseIdx &&
+ assert((isEnd() || SparseIdx == RHS.SparseIdx) &&
"Same dense entry, but different keys?");
return true;
}
@@ -282,7 +282,7 @@ public:
/// Increment and decrement operators
iterator_base &operator--() { // predecrement - Back up
assert(isKeyed() && "Decrementing an invalid iterator");
- assert(isEnd() || !SMS->isHead(SMS->Dense[Idx]) &&
+ assert((isEnd() || !SMS->isHead(SMS->Dense[Idx])) &&
"Decrementing head of list");
// If we're at the end, then issue a new find()