[llvm-commits] [llvm] r44082 - /llvm/trunk/include/llvm/ADT/SparseBitVector.h
Daniel Berlin
dberlin at dberlin.org
Wed Nov 14 23:30:41 PST 2007
On 11/13/07, Owen Anderson <resistor at mac.com> wrote:
> On Nov 13, 2007, at 5:04 PM, Hartmut Kaiser wrote:
> > - return iterator(this, ~0);
> > + return iterator(this, true);
>
> I'm not sure this is right. Is "true" guaranteed to be all-ones when
> cast to an integer, or just to contain at least one 1 bit? If the
> latter, then this patch changes the meaning.
At one point, this patch would have been very broken (also, ~0 is not
strange for unsigned int, it's used all the time to get the largest
unsigned number that fits in the datatype).
I have since changed the iterator to track the end differently, and
removed the ability to get an iterator at any random point in the
bitmap, so the parameter ~0 is being passed for is now a true/false
variable.
>
> --Owen
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
>
More information about the llvm-commits
mailing list