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 | 5bf76cd11913310cef04a21aef6db29897f32939 (patch) | |
tree | fd7171d2e8834a5543196a5da715ccc193a4ef17 /lib/CodeGen/LiveInterval.cpp | |
parent | 29449448b0f0420dfcf52e278fc01adbf1690d70 (diff) | |
download | llvm-5bf76cd11913310cef04a21aef6db29897f32939.tar.gz llvm-5bf76cd11913310cef04a21aef6db29897f32939.tar.bz2 llvm-5bf76cd11913310cef04a21aef6db29897f32939.tar.xz |
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/trunk@127264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-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; + } }; } |