[LLVMdev] MSVC compiling issue
Olaf Krzikalla
Olaf.Krzikalla at tu-dresden.de
Tue Mar 8 01:07:17 PST 2011
Hi @llvm,
building a debug version under MSVC 9 leads to a compiler error due to a
mix of different types in a call to upper_bound. I have attached a
hot-fix but I'm rather unsure if it should be applied as it is, since
IMHO the reason is a MSVC library bug ("IMHO", because I don't know the
requirements imposed to the predicate by the standard).
Best regards
Olaf Krzikalla
Index: lib/CodeGen/LiveInterval.cpp
===================================================================
--- lib/CodeGen/LiveInterval.cpp (revision 127221)
+++ lib/CodeGen/LiveInterval.cpp (working copy)
@@ -39,6 +39,9 @@
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;
+ }
};
}
More information about the llvm-dev
mailing list