diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index 40b50286f906..f2345bc2c587 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, const SlotIndex B) const { + bool operator()(const LiveRange &A, SlotIndex B) const { return A.end < B; } };