diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-06 04:47:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-06 04:47:34 +0000 |
commit | b048c9835969c4f7fe06264748be18ed4b442116 (patch) | |
tree | 1547bf56624a863ec983bd8d4efd44d87fd94be1 /lib/Sema/Sema.cpp | |
parent | 6ccb91abc37700e646139f49c448ccdbf14eb575 (diff) |
This patch contains these changes:
-Renamed ContextDecl -> DeclContext
-Removed DeclContext pointer from FieldDecl
-EnumDecl inherits from DeclContext, instead of TagDecl
Patch by Argiris Kirtzidis!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r-- | lib/Sema/Sema.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index 9e379e4be7..8c9bceae21 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -120,8 +120,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer) RecordDecl::Create(Context, Decl::Struct, NULL, SourceLocation(), &IT.get("objc_object"), 0); - FieldDecl *IsaDecl = FieldDecl::Create(Context, ObjectTag, - SourceLocation(), 0, + FieldDecl *IsaDecl = FieldDecl::Create(Context, SourceLocation(), 0, Context.getObjCClassType()); ObjectTag->defineBody(&IsaDecl, 1); QualType ObjT = Context.getPointerType(Context.getTagDeclType(ObjectTag)); |