r195255 - When wrapping lazily generated builtins in an extern "C" context,
Richard Smith
richard at metafoo.co.uk
Wed Nov 20 11:46:47 PST 2013
I suspect this is not currently visible to any in-tree code. Perhaps we
could teach -ast-dump to dump this flag, and test it that way.
On Wed, Nov 20, 2013 at 11:42 AM, Rafael EspĂndola <
rafael.espindola at gmail.com> wrote:
> testcase?
>
> On 20 November 2013 10:41, Enea Zaffanella <zaffanella at cs.unipr.it> wrote:
> > Author: enea
> > Date: Wed Nov 20 09:41:05 2013
> > New Revision: 195255
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=195255&view=rev
> > Log:
> > When wrapping lazily generated builtins in an extern "C" context,
> > flag the LinkageSpecDecl as being implicitly generated too.
> >
> > Modified:
> > cfe/trunk/lib/Sema/SemaDecl.cpp
> >
> > Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
> > URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=195255&r1=195254&r2=195255&view=diff
> >
> ==============================================================================
> > --- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
> > +++ cfe/trunk/lib/Sema/SemaDecl.cpp Wed Nov 20 09:41:05 2013
> > @@ -1540,6 +1540,7 @@ NamedDecl *Sema::LazilyCreateBuiltin(Ide
> > LinkageSpecDecl *CLinkageDecl =
> > LinkageSpecDecl::Create(Context, Parent, Loc, Loc,
> > LinkageSpecDecl::lang_c, false);
> > + CLinkageDecl->setImplicit();
> > Parent->addDecl(CLinkageDecl);
> > Parent = CLinkageDecl;
> > }
> >
> >
> > _______________________________________________
> > cfe-commits mailing list
> > cfe-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131120/f9438335/attachment.html>
More information about the cfe-commits
mailing list