From 2195ed675a215ee801233e0c76202f4c4da17a44 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Fri, 7 Mar 2014 21:04:24 +0000 Subject: Fix EXPECT_* to not produce a compile warning. EXPECT_TRUE/FALSE is also more idiomatic for booleans than EXPECT_EQ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203284 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ADT/PointerIntPairTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unittests/ADT/PointerIntPairTest.cpp') diff --git a/unittests/ADT/PointerIntPairTest.cpp b/unittests/ADT/PointerIntPairTest.cpp index 3da31e7dfe..3c472b2791 100644 --- a/unittests/ADT/PointerIntPairTest.cpp +++ b/unittests/ADT/PointerIntPairTest.cpp @@ -61,11 +61,11 @@ TEST_F(PointerIntPairTest, ManyUnusedBits) { PointerIntPair 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::NumLowBitsAvailable); -- cgit v1.2.3