[NFC] Use EXPECT_FALSE(...) in test rather than EXPECT_EQ(false, ...)
authorChristopher Tetreault <ctetreau@quicinc.com>
Tue, 16 Jun 2020 22:29:22 +0000 (15:29 -0700)
committerChristopher Tetreault <ctetreau@quicinc.com>
Tue, 16 Jun 2020 22:47:23 +0000 (15:47 -0700)
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

index 67338f7..975427d 100644 (file)
@@ -112,7 +112,7 @@ TEST(ModuleTest, setProfileSummary) {
   std::unique_ptr<Module> 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;