[clang] [Clang][CodeGen] Fix crash when compiling naked lambdas (PR #165524)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 29 06:51:46 PDT 2025
alcxpr wrote:
Naked lambdas now have their captures analyzed and metadata populated even though they cannot be accessed via generated code as naked functions have no prologue This matches GCC's behavior of naked lambdas with captures.
Though, please note that this currently does not handle the case where inline assembly constraints reference captured variables in a naked lambda without breaking LLVM's semantic. GCC accepts this for some reason. [godbolt](https://godbolt.org/z/qoxdTdore). For now, such code will fail with an LLVM verifier crash.
https://github.com/llvm/llvm-project/pull/165524
More information about the cfe-commits
mailing list