diff options
-rw-r--r-- | gcc/c-common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 86d202e..f8c723f 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) |