[clang] [Clang] FunctionEffect analysis was missing a CXXBindTemporaryExpr's implicit call to a destructor. (PR #166110)
Doug Wyatt via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 2 20:11:17 PST 2025
dougsonos wrote:
TODO: Consider `auto x = []() { /* lambda body */ };`
which becomes `VarDecl` holding `ExprWithCleanups` holding `CXXBindTemporaryExpr`.
We currently look for a destructor on a VarDecl but I suspect that becomes a redundant check with this change. Need to verify.
https://github.com/llvm/llvm-project/pull/166110
More information about the cfe-commits
mailing list