Don't import __va_list_tag or __builtin_va_list when merging

llvm-svn: 96299
This commit is contained in:
Douglas Gregor 2010-02-16 00:04:46 +00:00
parent b4964f7705
commit 9503c46a2e
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,12 @@ void ASTMergeAction::ExecuteAction() {
for (DeclContext::decl_iterator D = TU->decls_begin(),
DEnd = TU->decls_end();
D != DEnd; ++D) {
// Don't re-import __va_list_tag, __builtin_va_list.
if (NamedDecl *ND = dyn_cast<NamedDecl>(*D))
if (IdentifierInfo *II = ND->getIdentifier())
if (II->isStr("__va_list_tag") || II->isStr("__builtin_va_list"))
continue;
Importer.Import(*D);
}