diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-08 19:37:54 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-08 19:37:54 +0000 |
commit | 880e0b7760d57eb5b9d9d45056a636ce1167f45a (patch) | |
tree | d2733f2ca11fb5c42158f7d858eb8736f081da67 /llvm/lib/CodeGen | |
parent | 7238cba180f8c27c1f63b2f73c2b813eebb6bf84 (diff) | |
download | bcm5719-llvm-880e0b7760d57eb5b9d9d45056a636ce1167f45a.tar.gz bcm5719-llvm-880e0b7760d57eb5b9d9d45056a636ce1167f45a.zip |
Fix the build for MSVC 9 whose upper_bound() wants to compare elements in the sorted array.
Patch by Olaf Krzikalla!
llvm-svn: 127264
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/LiveInterval.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index f2345bc2c58..585e3a2dc24 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/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; + } }; } |