[llvm] r372449 - LiveIntervals: Add missing operator!= for segments

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 20 19:37:29 PDT 2019


Author: arsenm
Date: Fri Sep 20 19:37:28 2019
New Revision: 372449

URL: http://llvm.org/viewvc/llvm-project?rev=372449&view=rev
Log:
LiveIntervals: Add missing operator!= for segments

Modified:
    llvm/trunk/include/llvm/CodeGen/LiveInterval.h

Modified: llvm/trunk/include/llvm/CodeGen/LiveInterval.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LiveInterval.h?rev=372449&r1=372448&r2=372449&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LiveInterval.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LiveInterval.h Fri Sep 20 19:37:28 2019
@@ -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;
     };
 




More information about the llvm-commits mailing list