Skip to content

Commit eafc2a2

Browse files
committed
Use right type for test comp
1 parent 6dcba49 commit eafc2a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/unittests/Transforms/Utils/DebugSSAUpdaterTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if.else:
9090
BasicBlock *ExitBlock = &Foo->back();
9191
// We should have 5 ranges: 1 in the entry block, and 2 in each `if` block,
9292
// while there should be no range for the exit block.
93-
EXPECT_EQ(DbgValueRanges.getVariableRanges(VarA).size(), 5);
93+
EXPECT_EQ(DbgValueRanges.getVariableRanges(VarA).size(), 5u);
9494
EXPECT_TRUE(none_of(DbgValueRanges.getVariableRanges(VarA),
9595
[&](DbgRangeEntry VarRange) {
9696
return VarRange.Start->getParent() == ExitBlock;
@@ -149,7 +149,7 @@ TEST(DebugSSAUpdater, LoopPHI) {
149149
DbgValueRanges.addVariable(Foo, VarA);
150150
// We should have 3 ranges: 1 in the entry block, and 1 live-in entry for each
151151
// of the loops.
152-
EXPECT_EQ(DbgValueRanges.getVariableRanges(VarA).size(), 3);
152+
EXPECT_EQ(DbgValueRanges.getVariableRanges(VarA).size(), 3u);
153153
EXPECT_TRUE(
154154
all_of(DbgValueRanges.getVariableRanges(VarA),
155155
[&](DbgRangeEntry VarRange) { return !VarRange.Value.IsUndef; }));
@@ -214,6 +214,6 @@ if.else:
214214
DbgValueRanges.addVariable(Foo, VarA);
215215
// There should be no variable ranges emitted for a variable that has only
216216
// undef dbg_values.
217-
EXPECT_EQ(DbgValueRanges.getVariableRanges(VarA).size(), 0);
217+
EXPECT_EQ(DbgValueRanges.getVariableRanges(VarA).size(), 0u);
218218
}
219219
} // namespace

0 commit comments

Comments
 (0)