forked from OSchip/llvm-project
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:
parent
61979ccad6
commit
d8430928f1
|
@ -1540,6 +1540,7 @@ NamedDecl *Sema::LazilyCreateBuiltin(IdentifierInfo *II, unsigned bid,
|
||||||
LinkageSpecDecl *CLinkageDecl =
|
LinkageSpecDecl *CLinkageDecl =
|
||||||
LinkageSpecDecl::Create(Context, Parent, Loc, Loc,
|
LinkageSpecDecl::Create(Context, Parent, Loc, Loc,
|
||||||
LinkageSpecDecl::lang_c, false);
|
LinkageSpecDecl::lang_c, false);
|
||||||
|
CLinkageDecl->setImplicit();
|
||||||
Parent->addDecl(CLinkageDecl);
|
Parent->addDecl(CLinkageDecl);
|
||||||
Parent = CLinkageDecl;
|
Parent = CLinkageDecl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue