diff options
author | Younan Zhang <zyn7109@gmail.com> | 2024-05-01 11:52:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 11:52:14 +0800 |
commit | 410d6350eda322de213941b36adcdab13a0b557b (patch) | |
tree | dac571fb3f78d843a2dc374e59ab0bb43a4c45f3 /llvm/lib | |
parent | 306ae14face205e1bf2557ca2443c781b1d862f5 (diff) | |
download | llvm-410d6350eda322de213941b36adcdab13a0b557b.zip llvm-410d6350eda322de213941b36adcdab13a0b557b.tar.gz llvm-410d6350eda322de213941b36adcdab13a0b557b.tar.bz2 |
[Sema] Avoid an undesired pack expansion while transforming PackIndexingType (#90195)
A pack indexing type can appear in a larger pack expansion, e.g
`Pack...[pack_of_indexes]...` so we need to temporarily disable
substitution of pack elements.
Besides, this patch also fixes an assertion failure in
`PackIndexingExpr::classify`: dependent `PackIndexingExpr`s are always
LValues and thus we don't need to consider their `IndexExpr`s.
Fixes https://github.com/llvm/llvm-project/issues/88925
---------
Co-authored-by: cor3ntin <corentinjabot@gmail.com>
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions