From c1da1f33b7a47a10d89010fdd0d00f00d66e8512 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Thu, 21 Apr 1994 12:46:31 -0700 Subject: [PATCH] (store_expr): Don't check the TYPE_MODE of an ERROR_MARK. From-SVN: r7122 --- gcc/expr.c | 1 + 1 file changed, 1 insertion(+) 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))); -- 2.30.2