diff options
author | Balázs Kéri <1.int32@gmail.com> | 2023-03-06 08:55:19 +0100 |
---|---|---|
committer | Balázs Kéri <1.int32@gmail.com> | 2023-03-06 09:32:02 +0100 |
commit | 29a4ed80bb4c8aadc76718924f80a5f532b1ffce (patch) | |
tree | 500f576f1fcce150b6de9fdfa160706e8b5fcb7a /llvm/lib/Object/Archive.cpp | |
parent | a048df8707a1724093f7c442f8b78cd49583f470 (diff) | |
download | llvm-29a4ed80bb4c8aadc76718924f80a5f532b1ffce.zip llvm-29a4ed80bb4c8aadc76718924f80a5f532b1ffce.tar.gz llvm-29a4ed80bb4c8aadc76718924f80a5f532b1ffce.tar.bz2 |
[clang][ASTImporter] Add VaList declaration to lookup table.
The declaration of __builtin_va_list seems to be handled specially
by ASTContext and/or Sema. The normal AST traversal probably can
not find it, therefore it is not added to ASTImporterLookupTable.
If it is not added, errors can occur because a duplicated
VaList declaration is created at import. To fix the problem the
VaList declaration is added manually to ASTImporterLookupTable
at construction.
In special cases this declaration is inside a "invisible" 'std'
namespace that behaves the same way. This namespace must be added
to the table too.
Reviewed By: vabridgers, donat.nagy
Differential Revision: https://reviews.llvm.org/D144273
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
0 files changed, 0 insertions, 0 deletions