Skip to content

Commit 8896713

Browse files
committed
RuntimeLibcalls: Improve unit test
1 parent 51e3a1e commit 8896713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/unittests/IR/RuntimeLibcallsTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ TEST(RuntimeLibcallsTest, LibcallImplByName) {
2424

2525
for (RTLIB::LibcallImpl LC : RTLIB::libcall_impls()) {
2626
const char *Name = RTLIB::RuntimeLibcallsInfo::getLibcallImplName(LC);
27-
EXPECT_FALSE(
28-
RTLIB::RuntimeLibcallsInfo::lookupLibcallImplName(Name).empty());
27+
EXPECT_TRUE(is_contained(
28+
RTLIB::RuntimeLibcallsInfo::lookupLibcallImplName(Name), LC));
2929
}
3030

3131
// Test first libcall name

0 commit comments

Comments
 (0)