From 6ec5983a0cd3151833be7e3cf7d24d86545a5057 Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Tue, 8 Mar 2011 13:52:07 +0000 Subject: Make a comparator's argument `const'. This fixes the build for MSVC 9. llvm-svn: 127245 --- llvm/lib/CodeGen/LiveInterval.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/LiveInterval.cpp') diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index f2345bc2c58..40b50286f90 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/lib/CodeGen/LiveInterval.cpp @@ -36,7 +36,7 @@ struct CompEnd { bool operator()(SlotIndex A, const LiveRange &B) const { return A < B.end; } - bool operator()(const LiveRange &A, SlotIndex B) const { + bool operator()(const LiveRange &A, const SlotIndex B) const { return A.end < B; } }; -- cgit v1.2.3