[llvm] r247974 - Fix BitVectorTest on 32-bit hosts after r247972.

Yaron Keren via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 00:24:35 PDT 2015


Author: yrnkrn
Date: Fri Sep 18 02:24:35 2015
New Revision: 247974

URL: http://llvm.org/viewvc/llvm-project?rev=247974&view=rev
Log:
Fix BitVectorTest on 32-bit hosts after r247972.
We can't apply two words of 32-bit mask in the small case
where the internal storage is just one 32-bit word.


Modified:
    llvm/trunk/unittests/ADT/BitVectorTest.cpp

Modified: llvm/trunk/unittests/ADT/BitVectorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/BitVectorTest.cpp?rev=247974&r1=247973&r2=247974&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/BitVectorTest.cpp (original)
+++ llvm/trunk/unittests/ADT/BitVectorTest.cpp Fri Sep 18 02:24:35 2015
@@ -235,12 +235,12 @@ TYPED_TEST(BitVectorTest, PortableBitMas
   const uint32_t Mask1[] = { 0x80000000, 6, 5 };
 
   A.resize(10);
-  A.setBitsInMask(Mask1, 2);
+  A.setBitsInMask(Mask1, 1);
   EXPECT_EQ(10u, A.size());
   EXPECT_FALSE(A.test(0));
 
   A.resize(32);
-  A.setBitsInMask(Mask1, 2);
+  A.setBitsInMask(Mask1, 1);
   EXPECT_FALSE(A.test(0));
   EXPECT_TRUE(A.test(31));
   EXPECT_EQ(1u, A.count());




More information about the llvm-commits mailing list