[clang] [Clang] Handle instantiating captures in addInstantiatedCapturesToScope() (PR #128478)

via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 24 12:46:00 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
----------------
cor3ntin wrote:

```suggestion
  // When transforming a lambda's body, if we encounter another call to a
  // nested lambda that contains a constraint expression, we add all of the
```

I think that's what you mean?

https://github.com/llvm/llvm-project/pull/128478


More information about the cfe-commits mailing list