diff options
author | Qizhi Hu <836744285@qq.com> | 2024-04-05 15:18:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-05 15:18:07 +0800 |
commit | cfb86ae7497e43e9221ab890221789ae320381e9 (patch) | |
tree | d74e7af0e1faef2796ccecf69890ee349dbda309 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | ef8322f41d542bcf05dbe6079339d707534efbed (diff) | |
download | llvm-cfb86ae7497e43e9221ab890221789ae320381e9.zip llvm-cfb86ae7497e43e9221ab890221789ae320381e9.tar.gz llvm-cfb86ae7497e43e9221ab890221789ae320381e9.tar.bz2 |
[Clang][Sema] Skip checking anonymous enum in using enum declaration (#87144)
Try to fix https://github.com/llvm/llvm-project/issues/86790
`getFETokenInfo` requires `DeclarationName` shouldn't be empty and this
will produce crash when checking name conflict of an anonymous
`NamedDecl` in `Sema::PushOnScopeChains` and whether it's a reserved
identifier or not. These wouldn't happen when it's a anonymous enum and
we can skip the checking and just add the declaration to current scope.
Co-authored-by: huqizhi <836744285@qq.com>
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions