(store_expr): Don't check the TYPE_MODE of an ERROR_MARK.
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 21 Apr 1994 19:46:31 +0000 (12:46 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 21 Apr 1994 19:46:31 +0000 (12:46 -0700)
From-SVN: r7122

gcc/expr.c

index 5407bf8489816fb84c3bbc266dbb1ce771e66884..7f04af40ad89175767bc803097d0f4b8817da4a4 100644 (file)
@@ -2641,6 +2641,7 @@ store_expr (exp, target, want_value)
      example, in case it is a CONST_DOUBLE and we want only a word-sized
      value.  */
   if (CONSTANT_P (temp) && GET_MODE (temp) == VOIDmode
+      && TREE_CODE (exp) != ERROR_MARK
       && GET_MODE (target) != TYPE_MODE (TREE_TYPE (exp)))
     temp = convert_modes (GET_MODE (target), TYPE_MODE (TREE_TYPE (exp)),
                          temp, TREE_UNSIGNED (TREE_TYPE (exp)));