[clang] [LifetimeSafety] Introduce buildOriginFlowChain for use-after-scope (PR #199345)
Yuan Suo via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 4 03:17:55 PDT 2026
================
@@ -471,13 +474,47 @@ class LifetimeSafetySemaHelperImpl : public LifetimeSafetySemaHelper {
}
std::string getDiagSubjectDescription(const Expr *E) {
+ E = E->IgnoreImpCasts();
----------------
suoyuan666 wrote:
The main purpose here is to filter out `ImplicitCastExpr`, as the Origin is often bound to it. I believe `IgnoreImpCasts()` should be sufficient.
https://github.com/llvm/llvm-project/pull/199345
More information about the cfe-commits
mailing list