]> granicus.if.org Git - clang/commitdiff
Give the "isa" slot a name!
authorSteve Naroff <snaroff@apple.com>
Wed, 4 Jun 2008 03:03:48 +0000 (03:03 +0000)
committerSteve Naroff <snaroff@apple.com>
Wed, 4 Jun 2008 03:03:48 +0000 (03:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51924 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/Sema.cpp

index 2c00438be51ee2c80a71dc6b630b0d29c9272307..980717f15e2efe3bea58c0f5c1a49fbb70b8ba5a 100644 (file)
@@ -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));