From: Oscar Fuentes Date: Tue, 8 Mar 2011 13:52:07 +0000 (+0000) Subject: Make a comparator's argument `const'. This fixes the build for MSVC 9. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=86e4eeb6c79baf1c4bc4569a1e6ffc0c8f4b52b9;p=oota-llvm.git Make a comparator's argument `const'. This fixes the build for MSVC 9. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127245 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index f2345bc2c58..40b50286f90 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/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; } };