diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-03-08 21:40:31 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-03-08 21:40:31 +0000 |
commit | b59f9773f6dd06ac147d4af43a104473d21962d0 (patch) | |
tree | ec4ab8b9cbd4308a93cd532645b3e0eba414d67c | |
parent | 3043cf95b140cc9ab23c19978cb4bd470862c9a7 (diff) |
Merge r127264:
Fix the build for MSVC 9 whose upper_bound() wants to compare elements in the
sorted array.
Patch by Olaf Krzikalla!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127273 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/LiveInterval.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index f2345bc2c5..585e3a2dc2 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/lib/CodeGen/LiveInterval.cpp @@ -39,6 +39,9 @@ struct CompEnd { bool operator()(const LiveRange &A, SlotIndex B) const { return A.end < B; } + bool operator()(const LiveRange &A, const LiveRange &B) const { + return A.end < B.end; + } }; } |