aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-04-17 14:47:13 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-04-17 14:47:13 +0000
commitff898cd0b0c9fcbad1033e0278b54a4cc7108d05 (patch)
tree90f1a881116dce8f1c1cc7bd9caba16755615ce9 /lib/Sema/SemaDecl.cpp
parentef177820100ab583b08fd3056e2a5a52ee4b1629 (diff)
Use TranslationUnitDecl as DeclContext of builtin functions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index f0e469791a..015ba8c65d 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -166,7 +166,8 @@ ScopedDecl *Sema::LazilyCreateBuiltin(IdentifierInfo *II, unsigned bid,
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);