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

Enea Zaffanella zaffanella at cs.unipr.it
Wed Nov 20 07:41:06 PST 2013


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;
   }





More information about the cfe-commits mailing list