From: NAKAMURA Takumi Date: Tue, 22 Jan 2013 05:41:57 +0000 (+0000) Subject: SparseMultiSet.h: Add suggested parentheses. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=dc89ed7da30e882cfdb74968b2a7613e37570409;p=oota-llvm.git SparseMultiSet.h: Add suggested parentheses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173128 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/SparseMultiSet.h b/include/llvm/ADT/SparseMultiSet.h index 749b5c0e218..7f2a6f7d0ba 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()