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 | 2b3ef8b065ff655c52efe273e9b150db302e8a5a (patch) | |
tree | d9ebd93562114ed2896f50cfe07ddf6ae16f6cc5 /lib/CodeGen/LiveIntervalUnion.cpp | |
parent | 086976d76c01d28e3457e0df805e930e3348109a (diff) | |
download | llvm-2b3ef8b065ff655c52efe273e9b150db302e8a5a.tar.gz llvm-2b3ef8b065ff655c52efe273e9b150db302e8a5a.tar.bz2 llvm-2b3ef8b065ff655c52efe273e9b150db302e8a5a.tar.xz |
Fix a likely bug in an assertion by adding parentheses around '||'. This bug
was found by a GCC warning. ;]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalUnion.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalUnion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalUnion.cpp b/lib/CodeGen/LiveIntervalUnion.cpp index b22f466367..dea228300e 100644 --- a/lib/CodeGen/LiveIntervalUnion.cpp +++ b/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(); |