diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-10-23 07:46:14 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-10-23 07:46:14 +0000 |
commit | 9733158bfd79aa81c55bd3e3a6009874a597d351 (patch) | |
tree | faa5d1e2ee7a22a5847241692110e3c3a1742483 /llvm | |
parent | e08108af9b9340f20311ae8febf4cb09a1dfe8fe (diff) | |
download | bcm5719-llvm-9733158bfd79aa81c55bd3e3a6009874a597d351.tar.gz bcm5719-llvm-9733158bfd79aa81c55bd3e3a6009874a597d351.zip |
Fix a likely bug in an assertion by adding parentheses around '||'. This bug
was found by a GCC warning. ;]
llvm-svn: 117199
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalUnion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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(); |