diff options
author | Younan Zhang <zyn7109@gmail.com> | 2024-12-03 10:10:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-03 10:10:17 +0800 |
commit | 9ea993f975b045679907a0789d6fd4d7180593a0 (patch) | |
tree | db398cc094c54c0541d4613c300f6e380835e1b7 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | fb140125ac679c33c2c663062c6409e09fc885b9 (diff) | |
download | llvm-9ea993f975b045679907a0789d6fd4d7180593a0.zip llvm-9ea993f975b045679907a0789d6fd4d7180593a0.tar.gz llvm-9ea993f975b045679907a0789d6fd4d7180593a0.tar.bz2 |
[Clang] Recover GLTemplateParameterList for generic lambdas in RebuildLambdaScopeInfo (#118176)
The NTTP argument appearing inside a trailing return type of a generic
lambda would have us check for potential lambda captures, where the
function needs GLTemplateParameterList of the current LSI to tell
whether the lambda is generic.
The lambda scope in this context is rebuilt by the
LambdaScopeForCallOperatorInstantiationRAII when substituting the lambda
operator during template argument deduction. Thus, I think the template
parameter list should be preserved in the rebuilding process, as it
seems otherwise innocuous to me.
Fixes #115931
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions