mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Fix a likely bug in an assertion by adding parentheses around '||'. This bug
was found by a GCC warning. ;] llvm-svn: 117199
This commit is contained in:
parent
c99359bf34
commit
25324e76ae
@ -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<LiveInterval>());
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user