aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/PointerIntPairTest.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2014-03-07 21:04:24 +0000
committerEli Bendersky <eliben@google.com>2014-03-07 21:04:24 +0000
commit4ccce1b728bd31725f62b57c2dd6466ff78002ba (patch)
treef688519874bba7f7780c3066a4fbc8d5d606e414 /llvm/unittests/ADT/PointerIntPairTest.cpp
parent94d1617a1fbb72fdc0f1ac22bc9f9e6b7ee719b1 (diff)
downloadllvm-4ccce1b728bd31725f62b57c2dd6466ff78002ba.zip
llvm-4ccce1b728bd31725f62b57c2dd6466ff78002ba.tar.gz
llvm-4ccce1b728bd31725f62b57c2dd6466ff78002ba.tar.bz2
Fix EXPECT_* to not produce a compile warning.
EXPECT_TRUE/FALSE is also more idiomatic for booleans than EXPECT_EQ llvm-svn: 203284
Diffstat (limited to 'llvm/unittests/ADT/PointerIntPairTest.cpp')
-rw-r--r--llvm/unittests/ADT/PointerIntPairTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/ADT/PointerIntPairTest.cpp b/llvm/unittests/ADT/PointerIntPairTest.cpp
index 3da31e7..3c472b2 100644
--- a/llvm/unittests/ADT/PointerIntPairTest.cpp
+++ b/llvm/unittests/ADT/PointerIntPairTest.cpp
@@ -61,11 +61,11 @@ TEST_F(PointerIntPairTest, ManyUnusedBits) {
PointerIntPair<Fixnum31, 1, bool, FixnumPointerTraits> pair;
EXPECT_EQ((uintptr_t)0, pair.getPointer().Value);
- EXPECT_EQ(false, pair.getInt());
+ EXPECT_FALSE(pair.getInt());
pair.setPointerAndInt({ 0x7FFFFFFF }, true );
EXPECT_EQ((uintptr_t)0x7FFFFFFF, pair.getPointer().Value);
- EXPECT_EQ(true, pair.getInt());
+ EXPECT_TRUE(pair.getInt());
EXPECT_EQ(FixnumPointerTraits::NumLowBitsAvailable - 1,
PointerLikeTypeTraits<decltype(pair)>::NumLowBitsAvailable);