# HG changeset patch # User Kelly Wilson # Date 1245164240 21600 # Node ID c3c46399bcf1f643e789c010342a778116809d5c # Parent df11cdec45a24e429eddb5d0fd06d16c2d327d8a fix problem reported in ticket 327 - thanks d0k diff -r df11cdec45a2 -r c3c46399bcf1 gen/llvmhelpers.cpp --- a/gen/llvmhelpers.cpp Sun Jun 14 19:49:58 2009 +0200 +++ b/gen/llvmhelpers.cpp Tue Jun 16 08:57:20 2009 -0600 @@ -979,10 +979,11 @@ else if (AttribDeclaration* a = declaration->isAttribDeclaration()) { Logger::println("AttribDeclaration"); - for (int i=0; i < a->decl->dim; ++i) - { - DtoDeclarationExp((Dsymbol*)a->decl->data[i]); - } + if (a->decl) + for (int i=0; i < a->decl->dim; ++i) + { + DtoDeclarationExp((Dsymbol*)a->decl->data[i]); + } } // mixin declaration else if (TemplateMixin* m = declaration->isTemplateMixin())