[clang] [Clang][Sema] Fix lambdas mistakenly inheriting InImmediateFunctionContext (PR #232458)

Ferdinand Bachmann via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 17 14:56:19 PDT 2026


Ferdi265 wrote:

I found a way to make this work (needed a single-line fix to `SynthesizedFunctionScope`), and it also makes the `Parent.isConstantEvaluated() || Parent.isImmediateFunctionContext()` check unnecessary, so I think it's cleaner. I will clean this up, make some nice test cases and create an issue+PR for it.

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


More information about the cfe-commits mailing list