We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b07c41 commit 84d6371Copy full SHA for 84d6371
clang/unittests/Analysis/LifetimeSafetyTest.cpp
@@ -115,10 +115,9 @@ class LifetimeTestHelper {
115
}
116
std::vector<LoanID> LID;
117
for (const Loan *L : Analysis.getFactManager().getLoanMgr().getLoans())
118
- if (const auto *BL = dyn_cast<BorrowLoan>(L)) {
+ if (const auto *BL = dyn_cast<BorrowLoan>(L))
119
if (BL->getAccessPath().D == VD)
120
LID.push_back(L->getID());
121
- }
122
if (LID.empty()) {
123
ADD_FAILURE() << "Loan for '" << VarName << "' not found.";
124
return {};
0 commit comments