(check_case_value): Strip the new nops with STRIP_TYPE_NOPS.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Jul 1992 01:50:20 +0000 (01:50 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Jul 1992 01:50:20 +0000 (01:50 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1549 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-common.c

index 86d202e..f8c723f 100644 (file)
@@ -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)