Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
OCHyams committed May 3, 2024
1 parent af6a64c commit 85f4b84
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions llvm/unittests/Transforms/Utils/LocalTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -916,9 +916,8 @@ TEST(Local, ReplaceAllDbgUsesWith) {
findDbgUsers(CDbgVals, &C, &CDbgRecords);
EXPECT_EQ(0U, CDbgVals.size());
EXPECT_EQ(2U, CDbgRecords.size());
EXPECT_TRUE(all_of(CDbgRecords, [](DbgVariableRecord *DVR) {
return DVR->isDbgDeclare();
}));
EXPECT_TRUE(all_of(
CDbgRecords, [](DbgVariableRecord *DVR) { return DVR->isDbgDeclare(); }));

EXPECT_TRUE(replaceAllDbgUsesWith(C, D, D, DT));

Expand All @@ -927,9 +926,8 @@ TEST(Local, ReplaceAllDbgUsesWith) {
findDbgUsers(DDbgVals, &D, &DDbgRecords);
EXPECT_EQ(0U, DDbgVals.size());
EXPECT_EQ(2U, DDbgRecords.size());
EXPECT_TRUE(all_of(DDbgRecords, [](DbgVariableRecord *DVR) {
return DVR->isDbgDeclare();
}));
EXPECT_TRUE(all_of(
DDbgRecords, [](DbgVariableRecord *DVR) { return DVR->isDbgDeclare(); }));

// Introduce a use-before-def. Check that the dbg.value for %a is salvaged.
EXPECT_TRUE(replaceAllDbgUsesWith(A, F_, F_, DT));
Expand Down

0 comments on commit 85f4b84

Please sign in to comment.