Fix the build for MSVC 9 whose upper_bound() wants to compare elements in the sorted...
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 8 Mar 2011 19:37:54 +0000 (19:37 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 8 Mar 2011 19:37:54 +0000 (19:37 +0000)
Patch by Olaf Krzikalla!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127264 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveInterval.cpp

index f2345bc2c58711b9af1f4d1b3132d4e8f8fde055..585e3a2dc24ff4e12d036ce0b97df0f78a1b33a3 100644 (file)
@@ -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;
+  }
 };
 }