[clang] [LifetimeSafety] Add multi-block support to buildOriginFlowChain (PR #204592)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 23 07:04:52 PDT 2026


================
@@ -534,11 +534,24 @@ class LifetimeSafetySemaHelperImpl : public LifetimeSafetySemaHelper {
     return "expression";
   }
 
+  bool isInValidExpr(const Expr *E) {
+    if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) {
+      return DRE->getDecl()->isImplicit();
+    }
+
+    if (const auto *CE = dyn_cast<CallExpr>(E)) {
+      if (const auto *FE = CE->getDirectCallee())
+        return FE->isImplicit();
+    }
----------------
NeKon69 wrote:

Yes

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


More information about the cfe-commits mailing list