From: Jakob Stoklund Olesen Date: Tue, 8 Mar 2011 19:37:54 +0000 (+0000) Subject: Fix the build for MSVC 9 whose upper_bound() wants to compare elements in the sorted... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5bf76cd11913310cef04a21aef6db29897f32939;p=oota-llvm.git Fix the build for MSVC 9 whose upper_bound() wants to compare elements in the sorted array. Patch by Olaf Krzikalla! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127264 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index f2345bc2c58..585e3a2dc24 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/lib/CodeGen/LiveInterval.cpp @@ -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; + } }; }