(build_enumerator): Fix error in last change.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Jul 1992 06:11:19 +0000 (06:11 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Jul 1992 06:11:19 +0000 (06:11 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1538 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-decl.c

index 68a269f..4faddf6 100644 (file)
@@ -5049,7 +5049,8 @@ build_enumerator (name, value)
   /* Validate and default VALUE.  */
 
   /* Remove no-op casts from the value.  */
-  STRIP_NOPS (value);
+  if (value)
+    STRIP_NOPS (value);
 
   if (value != 0 && TREE_CODE (value) != INTEGER_CST)
     {