[clang] fix-149477-- Emit correct closure members for lambdas in CreateLimitedType (PR #149674)
Ayush Pareek via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 21 11:48:17 PDT 2025
ayushpareek2003 wrote:
According to my understanding, this issue happens because when a standard library header like <fstream> uses a function-local lambda, the compiler generates a closure type for that lambda
sometimes this closure type gets added to the debug info without including its captured variables.
when LLDB runs import std and tries to inspect types that indirectly depend on that header (for ex- std::list), it needs the debug info for all these
I made CreateLimitedType keep all fields for lambdas, so their captures aren’t skipped by the isImplicit check
am I missing something here or am I looking at this from the wrong angle?
https://github.com/llvm/llvm-project/pull/149674
More information about the cfe-commits
mailing list