diff options
author | Younan Zhang <zyn7109@gmail.com> | 2024-12-04 15:31:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-04 15:31:15 +0800 |
commit | 154c7c0bf272adc67d3ffc541a01fe8025843fd2 (patch) | |
tree | 2e8d7f612e4474390497ca291f230c243003d9a4 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 94d6b1cce5bb9449971a027e352385e72b059a3a (diff) | |
download | llvm-154c7c0bf272adc67d3ffc541a01fe8025843fd2.zip llvm-154c7c0bf272adc67d3ffc541a01fe8025843fd2.tar.gz llvm-154c7c0bf272adc67d3ffc541a01fe8025843fd2.tar.bz2 |
[Clang] Don't add top-level const qualifiers to captured function types (#118050)
This aligns with the logic in `TreeTransform::RebuildQualifiedType()`
where we refrain from adding const qualifiers to function types.
Previously, we seemed to overlook this edge case when copy-capturing a
variable that is of function type within a const-qualified lambda.
This issue also reveals other related problems as in incorrect type
printout and a suspicious implementation in DeduceTemplateArguments. I
decide to leave them in follow-up work.
Fixes #84961
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions