From: Richard Stallman Date: Fri, 10 Jul 1992 01:50:20 +0000 (+0000) Subject: (check_case_value): Strip the new nops with STRIP_TYPE_NOPS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8493738bccbaf3ed3f565e2f24e34e4055bbcaf0;p=gcc.git (check_case_value): Strip the new nops with STRIP_TYPE_NOPS. From-SVN: r1549 --- diff --git a/gcc/c-common.c b/gcc/c-common.c index 86d202eda4b..f8c723f7091 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -309,8 +309,7 @@ check_case_value (value) return value; /* Strip NON_LVALUE_EXPRs since we aren't using as an lvalue. */ - if (TREE_CODE (value) == NON_LVALUE_EXPR) - value = TREE_OPERAND (value, 0); + STRIP_TYPE_NOPS (value); if (TREE_CODE (value) != INTEGER_CST && value != error_mark_node)