[PATCH] D81976: [NFC] Use EXPECT_FALSE(...) in test rather than EXPECT_EQ(false, ...)
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 16 15:56:57 PDT 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1a1849c99b89: [NFC] Use EXPECT_FALSE(...) in test rather than EXPECT_EQ(false, ...) (authored by ctetreau).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81976/new/
https://reviews.llvm.org/D81976
Files:
llvm/unittests/IR/ModuleTest.cpp
Index: llvm/unittests/IR/ModuleTest.cpp
===================================================================
--- llvm/unittests/IR/ModuleTest.cpp
+++ llvm/unittests/IR/ModuleTest.cpp
@@ -112,7 +112,7 @@
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81976.271236.patch
Type: text/x-patch
Size: 589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200616/e87fff20/attachment.bin>
More information about the llvm-commits
mailing list