[cfe-commits] r49856 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Thu Apr 17 07:47:16 PDT 2008
Author: akirtzidis
Date: Thu Apr 17 09:47:13 2008
New Revision: 49856
URL: http://llvm.org/viewvc/llvm-project?rev=49856&view=rev
Log:
Use TranslationUnitDecl as DeclContext of builtin functions.
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=49856&r1=49855&r2=49856&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Thu Apr 17 09:47:13 2008
@@ -166,7 +166,8 @@
InitBuiltinVaListType();
QualType R = Context.BuiltinInfo.GetBuiltinType(BID, Context);
- FunctionDecl *New = FunctionDecl::Create(Context, CurContext,
+ FunctionDecl *New = FunctionDecl::Create(Context,
+ Context.getTranslationUnitDecl(),
SourceLocation(), II, R,
FunctionDecl::Extern, false, 0);
More information about the cfe-commits
mailing list