[llvm] [ADT] Fix a bug in PackedVector::setValue for signed types (PR #159239)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 16 22:16:32 PDT 2025
================
@@ -58,6 +58,8 @@ class PackedVectorBase<T, BitNum, BitVectorTy, true> {
if (val < 0) {
val = ~val;
Bits.set((Idx * BitNum) + BitNum - 1);
+ } else {
+ Bits.reset((Idx * BitNum) + BitNum - 1);
----------------
arsenm wrote:
I'd expect signed types to be disallowed?
https://github.com/llvm/llvm-project/pull/159239
More information about the llvm-commits
mailing list