From 43d082883d0977c870cb4288c912a583fec8482e Mon Sep 17 00:00:00 2001 From: jsm28 Date: Sun, 7 Nov 2004 00:31:55 +0000 Subject: * c-typeck.c (build_unary_op): Replace unreachable diagnostic for taking address of bit-field by assertion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90216 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-typeck.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'gcc/c-typeck.c') diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index cf883b7d545..f9481f809a9 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -2655,13 +2655,8 @@ build_unary_op (enum tree_code code, tree xarg, int flag) if (!c_mark_addressable (arg)) return error_mark_node; - if (TREE_CODE (arg) == COMPONENT_REF - && DECL_C_BIT_FIELD (TREE_OPERAND (arg, 1))) - { - error ("attempt to take address of bit-field structure member %qD", - TREE_OPERAND (arg, 1)); - return error_mark_node; - } + gcc_assert (TREE_CODE (arg) != COMPONENT_REF + || !DECL_C_BIT_FIELD (TREE_OPERAND (arg, 1))); argtype = build_pointer_type (argtype); -- cgit v1.2.3