Skip to content

Commit 84d6371

Browse files
committed
Addressing nit comments
1 parent 6b07c41 commit 84d6371

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/unittests/Analysis/LifetimeSafetyTest.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,9 @@ class LifetimeTestHelper {
115115
}
116116
std::vector<LoanID> LID;
117117
for (const Loan *L : Analysis.getFactManager().getLoanMgr().getLoans())
118-
if (const auto *BL = dyn_cast<BorrowLoan>(L)) {
118+
if (const auto *BL = dyn_cast<BorrowLoan>(L))
119119
if (BL->getAccessPath().D == VD)
120120
LID.push_back(L->getID());
121-
}
122121
if (LID.empty()) {
123122
ADD_FAILURE() << "Loan for '" << VarName << "' not found.";
124123
return {};

0 commit comments

Comments
 (0)