Skip to content

Commit e0f95a0

Browse files
committed
remove early return, rename unittest & fix warnings
1 parent 282a7d1 commit e0f95a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/unittests/IR/BasicBlockDbgInfoTest.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1525,8 +1525,7 @@ TEST(BasicBlockDbgInfoTest, DbgMoveToEnd) {
15251525
EXPECT_FALSE(Ret->hasDbgRecords());
15261526
}
15271527

1528-
TEST(BasicBlockDbgInfoTest, DbgKnownSentinelCrash) {
1529-
return;
1528+
TEST(BasicBlockDbgInfoTest, CloneTrailingRecordsToEmptyBlock) {
15301529
LLVMContext C;
15311530
std::unique_ptr<Module> M = parseIR(C, R"(
15321531
define i16 @foo(i16 %a) !dbg !6 {
@@ -1570,10 +1569,11 @@ TEST(BasicBlockDbgInfoTest, DbgKnownSentinelCrash) {
15701569
// The trailing records should've been absorbed into NewBB.
15711570
EXPECT_FALSE(BB.getTrailingDbgRecords());
15721571
EXPECT_TRUE(NewBB->getTrailingDbgRecords());
1573-
if (NewBB->getTrailingDbgRecords())
1572+
if (NewBB->getTrailingDbgRecords()) {
15741573
EXPECT_EQ(
15751574
llvm::range_size(NewBB->getTrailingDbgRecords()->getDbgRecordRange()),
1576-
1);
1575+
1u);
1576+
}
15771577

15781578
// Drop the trailing records now, to prevent a cleanup assertion.
15791579
NewBB->deleteTrailingDbgRecords();

0 commit comments

Comments
 (0)