================
@@ -58,6 +63,38 @@ int main() {
   vBool.push_back(true);
   vBool.push_back(false);
   vBool.push_back(true);
+
+  // 48..=55
+  vBool.push_back(true);
+  vBool.push_back(true);
+  vBool.push_back(false);
+  vBool.push_back(true);
+  vBool.push_back(false);
+  vBool.push_back(true);
+  vBool.push_back(false);
+  vBool.push_back(true);
+
+  // 56..=63
----------------
Nerixyz wrote:

Should've mentioned this. While I was testing, I made the mistake of 
calculating the byte index as `(idx / m_element_bit_size) * 8`. For reasons 
unknown to me, this made the tests pass (but it is wrong). I added the other 
elements to make sure that at least three elements of the underlying vector 
need to be accessed (to ensure that the calculation is actually correct).

https://github.com/llvm/llvm-project/pull/147538
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to