diff options
author | Balázs Kéri <balazs.keri@ericsson.com> | 2025-01-13 09:46:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-13 09:46:45 +0100 |
commit | b270525f730be6e7196667925f5a9bfa153262e9 (patch) | |
tree | b9e930bb5d1479aa89d9ec4671d7f1ba24cee828 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | 4f96fb5fb349b0030f9c14b4fe389cebc3069702 (diff) | |
download | llvm-b270525f730be6e7196667925f5a9bfa153262e9.zip llvm-b270525f730be6e7196667925f5a9bfa153262e9.tar.gz llvm-b270525f730be6e7196667925f5a9bfa153262e9.tar.bz2 |
[clang][ASTImporter] Not using primary context in lookup table (#118466)
`ASTImporterLookupTable` did use the `getPrimaryContext` function to get
the declaration context of the inserted items. This is problematic
because the primary context can change during import of AST items, most
likely if a definition of a previously not defined class is imported.
(For any record the primary context is the definition if there is one.)
The use of primary context is really not important, only for namespaces
because these can be re-opened and lookup in one namespace block is not
enough. This special search is now moved into ASTImporter instead of
relying on the lookup table.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions