[clang] [LifetimeSafety] Propagate inner origins through std::move and related casts (PR #199600)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Wed May 27 01:28:23 PDT 2026


================
@@ -961,11 +961,18 @@ void FactsGenerator::handleFunctionCall(const Expr *Call,
           ArgList->peelOuterOrigin()->getOuterOriginID(), KillSrc));
       KillSrc = false;
     } else if (IsArgLifetimeBound(I)) {
----------------
usx95 wrote:

I am confused. Why are we doing this under the branch `if (IsArgLifetimeBound(I))` ?
Can we do this early on and early return to avoid the nesting here.

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


More information about the cfe-commits mailing list