diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2007-07-14 17:41:03 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2007-07-14 17:41:03 +0000 |
commit | ddc2f9ba578d88a5b90ff5fbfcd869f5df5cb885 (patch) | |
tree | 1082e0e85811bd6edf81507e9e00519b6b69a93b /llvm/lib/Support/ConstantRange.cpp | |
parent | d20f485866e8ab6d3cba015648a65d49c194bea9 (diff) | |
download | bcm5719-llvm-ddc2f9ba578d88a5b90ff5fbfcd869f5df5cb885.tar.gz bcm5719-llvm-ddc2f9ba578d88a5b90ff5fbfcd869f5df5cb885.zip |
Clarify the language. Pointed out by Duncan Sands.
llvm-svn: 39857
Diffstat (limited to 'llvm/lib/Support/ConstantRange.cpp')
-rw-r--r-- | llvm/lib/Support/ConstantRange.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Support/ConstantRange.cpp b/llvm/lib/Support/ConstantRange.cpp index 4f132e5ed5f..fdfe28aaa95 100644 --- a/llvm/lib/Support/ConstantRange.cpp +++ b/llvm/lib/Support/ConstantRange.cpp @@ -248,8 +248,10 @@ ConstantRange ConstantRange::intersectWith(const ConstantRange &CR) const { /// maximalIntersectWith - Return the range that results from the intersection /// of this range with another range. The resultant range is guaranteed to -/// include all elements contained in both input ranges, and is also guaranteed -/// to be the smallest possible set that does so. +/// include all elements contained in both input ranges, and to have the +/// smallest possible set size that does so. Because there may be two +/// intersections with the same set size, A.maximalIntersectWith(B) might not +/// be equal to B.maximalIntersect(A). ConstantRange ConstantRange::maximalIntersectWith(const ConstantRange &CR) const { assert(getBitWidth() == CR.getBitWidth() && "ConstantRange types don't agree!"); |