[cfe-commits] r102624 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Douglas Gregor
dgregor at apple.com
Thu Apr 29 10:19:06 PDT 2010
On Apr 29, 2010, at 9:29 AM, Daniel Dunbar wrote:
> Author: ddunbar
> Date: Thu Apr 29 11:29:11 2010
> New Revision: 102624
>
> URL: http://llvm.org/viewvc/llvm-project?rev=102624&view=rev
> Log:
> IRgen/NeXT: Put the synthesized _objc_super, _message_ref_t decls in a valid DeclContext, to satisfy the invariants that should hold on a RecordDecl.
Thanks!
> Modified:
> cfe/trunk/lib/CodeGen/CGObjCMac.cpp
>
> Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=102624&r1=102623&r2=102624&view=diff
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Thu Apr 29 11:29:11 2010
> @@ -3669,7 +3669,8 @@
> // id self;
> // Class cls;
> // }
> - RecordDecl *RD = RecordDecl::Create(Ctx, TagDecl::TK_struct, 0,
> + RecordDecl *RD = RecordDecl::Create(Ctx, TagDecl::TK_struct,
> + Ctx.getTranslationUnitDecl(),
> SourceLocation(),
> &Ctx.Idents.get("_objc_super"));
> RD->addDecl(FieldDecl::Create(Ctx, RD, SourceLocation(), 0,
> @@ -4130,7 +4131,8 @@
> // };
>
> // First the clang type for struct _message_ref_t
> - RecordDecl *RD = RecordDecl::Create(Ctx, TagDecl::TK_struct, 0,
> + RecordDecl *RD = RecordDecl::Create(Ctx, TagDecl::TK_struct,
> + Ctx.getTranslationUnitDecl(),
> SourceLocation(),
> &Ctx.Idents.get("_message_ref_t"));
> RD->addDecl(FieldDecl::Create(Ctx, RD, SourceLocation(), 0,
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list