aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/LockFileManager.cpp
diff options
context:
space:
mode:
authorYounan Zhang <zyn7109@gmail.com>2024-05-21 09:47:05 +0800
committerGitHub <noreply@github.com>2024-05-21 09:47:05 +0800
commit8ce2045be0ce708af0bfce5dc14632fa15dc743a (patch)
tree1045e0bacf5b4a9aeec237644d3c52cea3d716e0 /llvm/lib/Support/LockFileManager.cpp
parentd1aca0ae2e0c52298966e35e4312e21045d4c6e4 (diff)
downloadllvm-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