forked from OSchip/llvm-project
[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:
parent
c151230533
commit
1a1849c99b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue