================
@@ -114,9 +114,11 @@ class LifetimeTestHelper {
       return {};
     }
     std::vector<LoanID> LID;
-    for (const Loan &L : Analysis.getFactManager().getLoanMgr().getLoans())
-      if (L.Path.D == VD)
-        LID.push_back(L.ID);
+    for (const Loan *L : Analysis.getFactManager().getLoanMgr().getLoans())
+      if (const auto *BL = dyn_cast<BorrowLoan>(L)) {
+        if (BL->getAccessPath().D == VD)
+          LID.push_back(L->getID());
+      }
----------------
usx95 wrote:

nit: drop the braces

https://github.com/llvm/llvm-project/pull/169767
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to