================
@@ -263,12 +263,16 @@ class LifetimeChecker {
if (Warning.InvalidatedByExpr) {
if (IssueExpr)
// Use-after-invalidation of an object on stack.
- SemaHelper->reportUseAfterInvalidation(IssueExpr, UF->getUseExpr(),
- Warning.InvalidatedByExpr);
+ SemaHelper->reportUseAfterInvalidation(
+ IssueExpr, UF->getUseExpr(), Warning.InvalidatedByExpr,
+ getExprChain(
----------------
Xazax-hun wrote:
We have this repeated pattern of
`getExprChain(LoanPropagation.buildOriginFlowChain(...))`. I am wondering if
this means we would be better off with a helper that gives us directly the
expression chain and would take one additional argument, the loan propagation.
https://github.com/llvm/llvm-project/pull/208891
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits