From: Yaron Keren Date: Fri, 18 Sep 2015 07:24:35 +0000 (+0000) Subject: Fix BitVectorTest on 32-bit hosts after r247972. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=43c0cee390ccfe0eff192a2d6e2f250298d70cd6;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247974 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ADT/BitVectorTest.cpp b/unittests/ADT/BitVectorTest.cpp index 5d99e1d27a5..95ff93fa9c4 100644 --- a/unittests/ADT/BitVectorTest.cpp +++ b/unittests/ADT/BitVectorTest.cpp @@ -235,12 +235,12 @@ TYPED_TEST(BitVectorTest, PortableBitMask) { 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());