When wrapping lazily generated builtins in an extern "C" context,

flag the LinkageSpecDecl as being implicitly generated too.

llvm-svn: 195255
This commit is contained in:
Enea Zaffanella 2013-11-20 15:41:05 +00:00
parent 61979ccad6
commit d8430928f1
1 changed files with 1 additions and 0 deletions

View File

@ -1540,6 +1540,7 @@ NamedDecl *Sema::LazilyCreateBuiltin(IdentifierInfo *II, unsigned bid,
LinkageSpecDecl *CLinkageDecl =
LinkageSpecDecl::Create(Context, Parent, Loc, Loc,
LinkageSpecDecl::lang_c, false);
CLinkageDecl->setImplicit();
Parent->addDecl(CLinkageDecl);
Parent = CLinkageDecl;
}