[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
This commit is contained in:
Christopher Tetreault 2020-06-16 15:29:22 -07:00
parent c151230533
commit 1a1849c99b
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ TEST(ModuleTest, setProfileSummary) {
std::unique_ptr<Module> M = parseAssemblyString(IRString, Err, Context); std::unique_ptr<Module> M = parseAssemblyString(IRString, Err, Context);
auto *PS = ProfileSummary::getFromMD(M->getProfileSummary(/*IsCS*/ false)); auto *PS = ProfileSummary::getFromMD(M->getProfileSummary(/*IsCS*/ false));
EXPECT_NE(nullptr, PS); EXPECT_NE(nullptr, PS);
EXPECT_EQ(false, PS->isPartialProfile()); EXPECT_FALSE(PS->isPartialProfile());
PS->setPartialProfile(true); PS->setPartialProfile(true);
M->setProfileSummary(PS->getMD(Context), ProfileSummary::PSK_Sample); M->setProfileSummary(PS->getMD(Context), ProfileSummary::PSK_Sample);
delete PS; delete PS;