[clang] [Clang] Handle instantiating captures in addInstantiatedCapturesToScope() (PR #128478)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 24 12:46:01 PST 2025
================
@@ -711,9 +711,32 @@ bool Sema::addInstantiatedCapturesToScope(
unsigned Instantiated = 0;
+ // FIXME: This is a workaround for not having deferred lambda body
+ // instantiation.
+ // When transforming a lambda's body, if we encounter another call to an
+ // inline lambda that contains a constraint expression, we add all of the
+ // parent lambda's instantiated captures to the current instantiation scope to
----------------
cor3ntin wrote:
```suggestion
// outer lambda's instantiated captures to the current instantiation scope to
```
https://github.com/llvm/llvm-project/pull/128478
More information about the cfe-commits
mailing list