From 1a1849c99b894aa20294713ba935a340ba181aa0 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 --- llvm/unittests/IR/ModuleTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/unittests/IR/ModuleTest.cpp b/llvm/unittests/IR/ModuleTest.cpp index 67338f797d3a..975427d08d48 100644 --- a/llvm/unittests/IR/ModuleTest.cpp +++ b/llvm/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;