Index: llvm/include/llvm/CodeGen/LiveIntervalUnion.h =================================================================== --- llvm/include/llvm/CodeGen/LiveIntervalUnion.h +++ llvm/include/llvm/CodeGen/LiveIntervalUnion.h @@ -75,6 +75,7 @@ bool empty() const { return Segments.empty(); } SlotIndex startIndex() const { return Segments.start(); } + SlotIndex endIndex() const { return Segments.stop(); } // Provide public access to the underlying map to allow overlap iteration. using Map = LiveSegments;