- /* if the ival was a symbol, delete it from its segment */
- if (IS_AST_SYM_VALUE(sym->ival->init.node)) {
+ /* 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) &&
+ IS_AGGREGATE (sym->type) ) {