SparseMultiSet.h: Add suggested parentheses.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 22 Jan 2013 05:41:57 +0000 (05:41 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 22 Jan 2013 05:41:57 +0000 (05:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173128 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SparseMultiSet.h

index 749b5c0e218eb392423251de2412ad16d8f7dcfd..7f2a6f7d0bacd14235a5c8c5481d0503cbe148cc 100644 (file)
@@ -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()