[llvm-commits] [llvm] r173128 - /llvm/trunk/include/llvm/ADT/SparseMultiSet.h
NAKAMURA Takumi
geek4civic at gmail.com
Mon Jan 21 21:41:57 PST 2013
Author: chapuni
Date: Mon Jan 21 23:41:57 2013
New Revision: 173128
URL: http://llvm.org/viewvc/llvm-project?rev=173128&view=rev
Log:
SparseMultiSet.h: Add suggested parentheses.
Modified:
llvm/trunk/include/llvm/ADT/SparseMultiSet.h
Modified: llvm/trunk/include/llvm/ADT/SparseMultiSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SparseMultiSet.h?rev=173128&r1=173127&r2=173128&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SparseMultiSet.h (original)
+++ llvm/trunk/include/llvm/ADT/SparseMultiSet.h Mon Jan 21 23:41:57 2013
@@ -267,7 +267,7 @@
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 @@
/// 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()
More information about the llvm-commits
mailing list