diff options
author | Younan Zhang <zyn7109@gmail.com> | 2024-05-21 09:47:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 09:47:05 +0800 |
commit | 8ce2045be0ce708af0bfce5dc14632fa15dc743a (patch) | |
tree | 1045e0bacf5b4a9aeec237644d3c52cea3d716e0 /llvm/lib/Support/LockFileManager.cpp | |
parent | d1aca0ae2e0c52298966e35e4312e21045d4c6e4 (diff) | |
download | llvm-8ce2045be0ce708af0bfce5dc14632fa15dc743a.zip llvm-8ce2045be0ce708af0bfce5dc14632fa15dc743a.tar.gz llvm-8ce2045be0ce708af0bfce5dc14632fa15dc743a.tar.bz2 |
[Clang][Sema] Avoid pack expansion for expanded empty PackIndexingExprs (#92385)
We previously doubled the id-expression expansion, even when the pack
was expanded to empty. The previous condition for determining whether we
should expand couldn't distinguish between cases where 'the expansion
was previously postponed' and 'the expansion occurred but resulted in
emptiness.'
In the latter scenario, we crash because we have not been examining the
current lambda's parent local instantiation scope since
[D98068](https://reviews.llvm.org/D98068): Any Decls instantiated in the
parent scope are not visible to the generic lambda, and thus any attempt
of looking for instantiated Decls in the lambda is capped to the current
Lambda's LIS.
Fixes https://github.com/llvm/llvm-project/issues/92230
Diffstat (limited to 'llvm/lib/Support/LockFileManager.cpp')
0 files changed, 0 insertions, 0 deletions