summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT/BitVectorTest.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-09-18 12:18:41 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-09-18 12:18:41 +0000
commiteda0a48e53cdc24b911609890bdc41103afe32c0 (patch)
tree74dd8e3adb9a5e6be209ea584c3f7d0f454ff20d /llvm/unittests/ADT/BitVectorTest.cpp
parent253d71efeb62dfea49d0aefe3b0d5ccacf1fe961 (diff)
downloadbcm5719-llvm-eda0a48e53cdc24b911609890bdc41103afe32c0.tar.gz
bcm5719-llvm-eda0a48e53cdc24b911609890bdc41103afe32c0.zip
Reverting r247972 (and subordinate commit r247972) as the 32-bit left-shift is undefined behavior on implementations where uinptr_t is 32-bits. One such platform is Windows, MSVC, x86.
llvm-svn: 247983
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 95ff93fa9c4..3deaff0fe35 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, 1);
+ A.setBitsInMask(Mask1, 3);
EXPECT_EQ(10u, A.size());
EXPECT_FALSE(A.test(0));
A.resize(32);
- A.setBitsInMask(Mask1, 1);
+ A.setBitsInMask(Mask1, 3);
EXPECT_FALSE(A.test(0));
EXPECT_TRUE(A.test(31));
EXPECT_EQ(1u, A.count());
OpenPOWER on IntegriCloud