From be39b10ee1047ffb4eacde30d79b1fa614c5d550 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 22 Jan 2013 05:41:57 +0000 Subject: [PATCH] SparseMultiSet.h: Add suggested parentheses. llvm-svn: 173128 --- llvm/include/llvm/ADT/SparseMultiSet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/ADT/SparseMultiSet.h b/llvm/include/llvm/ADT/SparseMultiSet.h index 749b5c0..7f2a6f7 100644 --- a/llvm/include/llvm/ADT/SparseMultiSet.h +++ b/llvm/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() -- 2.7.4