diff options
author | Younan Zhang <zyn7109@gmail.com> | 2024-10-22 16:51:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 16:51:43 +0800 |
commit | d15559d69d519cae203508b1ffe3adbdd29ab387 (patch) | |
tree | 5ae6ebe5d0f42cc9f8c6e8a582d523cf6dff0cf4 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 2f58ac4a22baa27c1e9aad1b3c6d5c687ef03721 (diff) | |
download | llvm-d15559d69d519cae203508b1ffe3adbdd29ab387.zip llvm-d15559d69d519cae203508b1ffe3adbdd29ab387.tar.gz llvm-d15559d69d519cae203508b1ffe3adbdd29ab387.tar.bz2 |
[Clang] Don't assert on substituted-but-yet-expanded packs for nested lambdas (#112896)
Nested lambdas could refer to outer packs that would be expanded by a
larger CXXFoldExpr, in which case that reference could happen to be a
full expression containing intermediate types/expressions, e.g.
SubstTemplateTypeParmPackType/FunctionParmPackExpr. They are designated
as "UnexpandedPack" dependencies but don't introduce new packs anyway.
This also handles a missed case for VarDecls, where the flag of
ContainsUnexpandedPack was not propagated up to the surrounding lambda.
Fixes #112352
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions