From bd7f2354ccbaa50923b134b223349ae532443aba Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Sat, 21 Sep 2019 02:37:28 +0000 Subject: [PATCH] LiveIntervals: Add missing operator!= for segments llvm-svn: 372449 --- llvm/include/llvm/CodeGen/LiveInterval.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/include/llvm/CodeGen/LiveInterval.h b/llvm/include/llvm/CodeGen/LiveInterval.h index c3b472e..290a238 100644 --- a/llvm/include/llvm/CodeGen/LiveInterval.h +++ b/llvm/include/llvm/CodeGen/LiveInterval.h @@ -189,6 +189,10 @@ namespace llvm { return start == Other.start && end == Other.end; } + bool operator!=(const Segment &Other) const { + return !(*this == Other); + } + void dump() const; }; -- 2.7.4