From 88d9832a47d4f98a1b6f3334b87e7571be66c0b4 Mon Sep 17 00:00:00 2001 From: Christopher Tetreault Date: Tue, 16 Jun 2020 15:29:22 -0700 Subject: [PATCH] [NFC] Use EXPECT_FALSE(...) in test rather than EXPECT_EQ(false, ...) Summary: Silence GCC -Wconversion-null warning from GTest Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D81976 --- unittests/IR/ModuleTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/IR/ModuleTest.cpp b/unittests/IR/ModuleTest.cpp index 67338f797d3..975427d08d4 100644 --- a/unittests/IR/ModuleTest.cpp +++ b/unittests/IR/ModuleTest.cpp @@ -112,7 +112,7 @@ TEST(ModuleTest, setProfileSummary) { std::unique_ptr M = parseAssemblyString(IRString, Err, Context); auto *PS = ProfileSummary::getFromMD(M->getProfileSummary(/*IsCS*/ false)); EXPECT_NE(nullptr, PS); - EXPECT_EQ(false, PS->isPartialProfile()); + EXPECT_FALSE(PS->isPartialProfile()); PS->setPartialProfile(true); M->setProfileSummary(PS->getMD(Context), ProfileSummary::PSK_Sample); delete PS;