From: Christoph Mallon Date: Tue, 5 Aug 2008 07:51:54 +0000 (+0000) Subject: Fix cp_error041.c. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=f9b35a1713621002bd730ab3d8b51ec8a2cb60c4;p=cparser Fix cp_error041.c. [r20985] --- diff --git a/ast2firm.c b/ast2firm.c index 85aa6b9..9c9f3ae 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -484,7 +484,7 @@ static ir_type *get_unsigned_int_type_for_bit_size(ir_type *base_tp, static ir_type *create_bitfield_type(bitfield_type_t *const type) { type_t *base = skip_typeref(type->base_type); - assert(base->kind == TYPE_ATOMIC); + assert(base->kind == TYPE_ATOMIC || base->kind == TYPE_ENUM); ir_type *irbase = get_ir_type(base); unsigned size = fold_constant(type->size);