[llvm] [SandboxVec][Interval] Implement getUnionInterval() and getSingleDiff() (PR #111455)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 8 10:11:09 PDT 2024


================
@@ -176,6 +176,26 @@ template <typename T> class Interval {
       Result.emplace_back(Intersection.To->getNextNode(), To);
     return Result;
   }
+  /// A difference that asserts that the result is a single interval.
----------------
vporpo wrote:

I will change it to:
`/// \Returns the interval difference `this - Other`. This will crash in the Debug build if the result is not a single interval.`
Wdyt ? 

https://github.com/llvm/llvm-project/pull/111455


More information about the llvm-commits mailing list