================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to