From 9733158bfd79aa81c55bd3e3a6009874a597d351 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 23 Oct 2010 07:46:14 +0000 Subject: Fix a likely bug in an assertion by adding parentheses around '||'. This bug was found by a GCC warning. ;] llvm-svn: 117199 --- llvm/lib/CodeGen/LiveIntervalUnion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/LiveIntervalUnion.cpp') diff --git a/llvm/lib/CodeGen/LiveIntervalUnion.cpp b/llvm/lib/CodeGen/LiveIntervalUnion.cpp index b22f466367e..dea228300ec 100644 --- a/llvm/lib/CodeGen/LiveIntervalUnion.cpp +++ b/llvm/lib/CodeGen/LiveIntervalUnion.cpp @@ -25,7 +25,7 @@ void LiveIntervalUnion::unify(LiveInterval &lvr) { // Add this live virtual register to the union LiveVirtRegs::iterator pos = std::upper_bound(lvrs_.begin(), lvrs_.end(), &lvr, less_ptr()); - assert(pos == lvrs_.end() || *pos != &lvr && "duplicate LVR insertion"); + assert((pos == lvrs_.end() || *pos != &lvr) && "duplicate LVR insertion"); lvrs_.insert(pos, &lvr); // Insert each of the virtual register's live segments into the map SegmentIter segPos = segments_.begin(); -- cgit v1.2.3