From: Enea Zaffanella Date: Wed, 20 Nov 2013 15:41:05 +0000 (+0000) Subject: When wrapping lazily generated builtins in an extern "C" context, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb21072ddccec35be71916b80c54466e4ed7b404;p=clang When wrapping lazily generated builtins in an extern "C" context, flag the LinkageSpecDecl as being implicitly generated too. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195255 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 1892809bce..4fe55765d3 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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; }