diff options
author | Younan Zhang <zyn7109@gmail.com> | 2024-02-06 09:59:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 09:59:16 +0800 |
commit | 2c2d291b4568381999442e47fc77f949f19be0bc (patch) | |
tree | c751805fda2fcd03482389d0ea425ea3a83a509e /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 0123cefc00177e4fc7daa0dadf98ca8336760785 (diff) | |
download | llvm-2c2d291b4568381999442e47fc77f949f19be0bc.zip llvm-2c2d291b4568381999442e47fc77f949f19be0bc.tar.gz llvm-2c2d291b4568381999442e47fc77f949f19be0bc.tar.bz2 |
[concepts] Extract function template pack arguments from the current instantiation if possible (#80594)
Before the constraint substitution, we employ
`getTemplateInstantiationArgs`, which in turn attempts to inspect
`TemplateArgument`s from the function template. For parameter packs from
their parent contexts, we used to extract the arguments from the
specialization type, in which could result in non-canonical argument
types e.g. `PackExpansionType`.
This may break the contract that, during a tree transformation, in
`TreeTransform::TryExpandParameterPacks`, the corresponding
`TemplateArgument`s for an `UnexpandedParameterPack` are expected to be
of `Pack` kinds if we're expanding template parameters.
Fixes https://github.com/llvm/llvm-project/issues/72557.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions