[clang] [LifetimeSafety] Propogate loans through chained assignment (PR #198510)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Tue May 19 06:25:12 PDT 2026


================
@@ -397,7 +398,9 @@ void FactsGenerator::handleAssignment(const Expr *LHSExpr,
   // unlike built-in assignment where LValueToRValue cast strips the outer
   // lvalue origin. Strip it manually to get the actual value origins being
   // assigned.
-  RHSList = getRValueOrigins(RHSExpr, RHSList);
+  if (!(isGslPointerType(LHSExpr->getType()) &&
----------------
Xazax-hun wrote:

I think it might be cleaner to have a separate PR for this change, just in case there are any false positives or other problems it is easier to bisect to a narrower problem. 

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


More information about the cfe-commits mailing list