Skip to content

Commit 5edb493

Browse files
authored
ADT: Add non-const overload of PackedVector::raw_bits() (#101742)
This is convenient when operating on vectors in a bulk, bit-manipulating fashion. I plan to use this in a future change.
1 parent 4ac24b3 commit 5edb493

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/include/llvm/ADT/PackedVector.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ class PackedVector : public PackedVectorBase<T, BitNum, BitVectorTy,
143143
}
144144

145145
const BitVectorTy &raw_bits() const { return Bits; }
146+
BitVectorTy &raw_bits() { return Bits; }
146147
};
147148

148149
// Leave BitNum=0 undefined.

0 commit comments

Comments
 (0)