diff options
author | Steve Naroff <snaroff@apple.com> | 2008-06-04 03:03:48 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-06-04 03:03:48 +0000 |
commit | e6fe5d46b26f407d78d1f12ece9cb103e4d19b82 (patch) | |
tree | beee484b88d7c64e7d9308ebbec7427bbbd7abd2 /lib/Sema/Sema.cpp | |
parent | eaf9a42b78ef8e5f2eac5dfaf45a666f2f1d00f9 (diff) |
Give the "isa" slot a name!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r-- | lib/Sema/Sema.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index 2c00438be5..980717f15e 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -120,7 +120,8 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer) RecordDecl::Create(Context, Decl::Struct, TUDecl, SourceLocation(), &IT.get("objc_object"), 0); - FieldDecl *IsaDecl = FieldDecl::Create(Context, SourceLocation(), 0, + FieldDecl *IsaDecl = FieldDecl::Create(Context, SourceLocation(), + &Context.Idents.get("isa"), Context.getObjCClassType()); ObjectTag->defineBody(&IsaDecl, 1); QualType ObjT = Context.getPointerType(Context.getTagDeclType(ObjectTag)); |