From 0c1b6e27d914e2341dc255647dc9ab59780c9430 Mon Sep 17 00:00:00 2001 From: Kelly Wilson Date: Tue, 16 Jun 2009 08:57:20 -0600 Subject: [PATCH] fix problem reported in ticket 327 - thanks d0k --- gen/llvmhelpers.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index 6fa6162f..c664ee67 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -979,10 +979,11 @@ DValue* DtoDeclarationExp(Dsymbol* declaration) 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())