[clang] [LifetimeSafety] Track origins through std::function (PR #191123)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 12 08:37:05 PDT 2026


================
@@ -395,6 +404,15 @@ void FactsGenerator::handleAssignment(const Expr *LHSExpr,
     } else
       markUseAsWrite(DRE_LHS);
   }
+  if (!RHSList) {
----------------
Xazax-hun wrote:

Interestingly, `std::function` used to have an `assign` method that got removed later. Maybe it is not that important to handle it given that it was removed.

https://github.com/llvm/llvm-project/pull/191123


More information about the cfe-commits mailing list