diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2011-03-08 13:52:07 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2011-03-08 13:52:07 +0000 |
commit | 86e4eeb6c79baf1c4bc4569a1e6ffc0c8f4b52b9 (patch) | |
tree | 108c9a97df0848c7c6a9d40a3b9df20f34b7a465 /lib/CodeGen/LiveInterval.cpp | |
parent | f88befd9ee18230bf296f519a5f4c8f4b12dc638 (diff) | |
download | llvm-86e4eeb6c79baf1c4bc4569a1e6ffc0c8f4b52b9.tar.gz llvm-86e4eeb6c79baf1c4bc4569a1e6ffc0c8f4b52b9.tar.bz2 llvm-86e4eeb6c79baf1c4bc4569a1e6ffc0c8f4b52b9.tar.xz |
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
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r-- | lib/CodeGen/LiveInterval.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index f2345bc2c5..40b50286f9 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; } }; |