summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2011-03-08 13:52:07 +0000
committerOscar Fuentes <ofv@wanadoo.es>2011-03-08 13:52:07 +0000
commit6ec5983a0cd3151833be7e3cf7d24d86545a5057 (patch)
treecb9e580ccd2e717ce67b6ceef6c416cde41624af /llvm/lib/CodeGen
parenta693632dfdcbcb9fd9ea423c7dd9d9145fae3934 (diff)
downloadbcm5719-llvm-6ec5983a0cd3151833be7e3cf7d24d86545a5057.tar.gz
bcm5719-llvm-6ec5983a0cd3151833be7e3cf7d24d86545a5057.zip
Make a comparator's argument `const'. This fixes the build for MSVC 9.
llvm-svn: 127245
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
};
OpenPOWER on IntegriCloud