================
@@ -205,7 +209,7 @@ class SparseSet {
assert(Idx < Universe && "Key out of range");
assert(Sparse != nullptr && "Invalid sparse type");
const unsigned Stride = std::numeric_limits<SparseT>::max() + 1u;
- for (unsigned i = Sparse[Idx], e = size(); i < e; i += Stride) {
+ for (unsigned i = Sparse.get()[Idx], e = size(); i < e; i += Stride) {
----------------
dwblaikie wrote:
If you make the `std::unique_ptr<SparseT, Deleter>` into a
`std::unique_ptr<SparseT[], Deleter>` then you can use [] directly without the
`.get()` I think?
https://github.com/llvm/llvm-project/pull/116617
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits