[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
Mon Nov 3 07:58:34 PST 2025
dougsonos wrote:
> ```c++
> struct S { ~S(); };
> void f() {
> S s;
> [&]() [[clang::nonblocking]] {
> [s]{ auto x = &s; }();
> [=]{ auto x = &s; }();
> }();
> }
> ```
With this patch, here we get two warnings that S's destructor is being called from the nonblocking lambda.
https://github.com/llvm/llvm-project/pull/166110
More information about the cfe-commits
mailing list