llvm.org GIT mirror llvm / dc89ed7
SparseMultiSet.h: Add suggested parentheses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173128 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 7 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
266266 bool operator==(const iterator_base &RHS) const {
267267 // end compares equal
268268 if (SMS == RHS.SMS && Idx == RHS.Idx) {
269 assert(isEnd() || SparseIdx == RHS.SparseIdx &&
269 assert((isEnd() || SparseIdx == RHS.SparseIdx) &&
270270 "Same dense entry, but different keys?");
271271 return true;
272272 }
281281 /// Increment and decrement operators
282282 iterator_base &operator--() { // predecrement - Back up
283283 assert(isKeyed() && "Decrementing an invalid iterator");
284 assert(isEnd() || !SMS->isHead(SMS->Dense[Idx]) &&
284 assert((isEnd() || !SMS->isHead(SMS->Dense[Idx])) &&
285285 "Decrementing head of list");
286286
287287 // If we're at the end, then issue a new find()