From d72d9e765a14d3a4298668c3f71004f678bbafe4 Mon Sep 17 00:00:00 2001 From: johanknol Date: Sat, 27 Oct 2001 19:15:34 +0000 Subject: [PATCH] fixed an array of structures initialisation bug git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1453 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCglue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SDCCglue.c b/src/SDCCglue.c index 1d6e0ed1..55487f37 100644 --- a/src/SDCCglue.c +++ b/src/SDCCglue.c @@ -274,7 +274,8 @@ emitRegularMap (memmap * map, bool addPublics, bool arFlag) /* if the ival is a symbol assigned to an aggregate, (bug #458099 -> #462479) we don't need it anymore, so delete it from its segment */ - if (IS_AST_SYM_VALUE(sym->ival->init.node) && + if (sym->ival->type == INIT_NODE && + IS_AST_SYM_VALUE(sym->ival->init.node) && IS_AGGREGATE (sym->type) ) { symIval=AST_SYMBOL(sym->ival->init.node); segment = SPEC_OCLS (symIval->etype); -- 2.47.2