summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT/BitVectorTest.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-09-18 07:24:35 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-09-18 07:24:35 +0000
commit8c3142b5f7be3674b9f69ede2107d2de4cf69ec3 (patch)
tree6606f68c1b11a0c0b0b08651746624f60866f564 /llvm/unittests/ADT/BitVectorTest.cpp
parente7e911f06b021b595b6599113a113e6241043f4d (diff)
downloadbcm5719-llvm-8c3142b5f7be3674b9f69ede2107d2de4cf69ec3.tar.gz
bcm5719-llvm-8c3142b5f7be3674b9f69ede2107d2de4cf69ec3.zip
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. llvm-svn: 247974
Diffstat (limited to 'llvm/unittests/ADT/BitVectorTest.cpp')
-rw-r--r--llvm/unittests/ADT/BitVectorTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/ADT/BitVectorTest.cpp b/llvm/unittests/ADT/BitVectorTest.cpp
index 5d99e1d27a5..95ff93fa9c4 100644
--- a/llvm/unittests/ADT/BitVectorTest.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud