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

Yuan Suo via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 23 07:06:42 PDT 2026


================
@@ -550,11 +550,25 @@ class LifetimeSafetySemaHelperImpl : public LifetimeSafetySemaHelper {
     return "expression";
   }
 
+  bool isInvalidExpr(const Expr *E) {
----------------
suoyuan666 wrote:

I tested it locally, but it didn't have any effect.

`IgnoreImpCasts()` is already called at the beginning of `shouldShowInAliasChain`, so calling `E->IgnoreImpCasts()` again later should return the same expression.

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


More information about the cfe-commits mailing list