From: Jim Wilson Date: Thu, 21 Apr 1994 19:46:31 +0000 (-0700) Subject: (store_expr): Don't check the TYPE_MODE of an ERROR_MARK. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1da1f33b7a47a10d89010fdd0d00f00d66e8512;p=gcc.git (store_expr): Don't check the TYPE_MODE of an ERROR_MARK. From-SVN: r7122 --- diff --git a/gcc/expr.c b/gcc/expr.c index 5407bf84898..7f04af40ad8 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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)));