[llvm-commits] [llvm] r127264 - /llvm/trunk/lib/CodeGen/LiveInterval.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Mar 8 11:37:54 PST 2011


Author: stoklund
Date: Tue Mar  8 13:37:54 2011
New Revision: 127264

URL: http://llvm.org/viewvc/llvm-project?rev=127264&view=rev
Log:
Fix the build for MSVC 9 whose upper_bound() wants to compare elements in the sorted array.

Patch by Olaf Krzikalla!

Modified:
    llvm/trunk/lib/CodeGen/LiveInterval.cpp

Modified: llvm/trunk/lib/CodeGen/LiveInterval.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveInterval.cpp?rev=127264&r1=127263&r2=127264&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveInterval.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveInterval.cpp Tue Mar  8 13:37:54 2011
@@ -39,6 +39,9 @@
   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;
+  }
 };
 }
 





More information about the llvm-commits mailing list