Improve compatibility with VC2005, patch by Morten Ofstad!
[oota-llvm.git] / include / llvm / CodeGen / LiveInterval.h
index 4606781efd2295c174aa7a29368b84adc66a7b6d..f4f2b473668ca77aaddfb3e72d7ebf4682adf5d7 100644 (file)
@@ -64,6 +64,9 @@ namespace llvm {
     return V < LR.start;
   }
 
+  inline bool operator<(const LiveRange &LR, unsigned V) {
+    return LR.start < V;
+  }
 
   /// LiveInterval - This class represents some number of live ranges for a
   /// register or value.  This class also contains a bit of register allocator