sh.c (sh_expand_builtin): Return early if encountering an error_mark for a type.

* sh.c (sh_expand_builtin): Return early if encountering an
	error_mark for a type.

From-SVN: r56844
This commit is contained in:
J"orn Rennecke 2002-09-05 15:31:24 +00:00 committed by Joern Rennecke
parent 7974fe63a5
commit 3578cf6341
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Thu Sep 5 16:27:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
* sh.c (sh_expand_builtin): Return early if encountering an
error_mark for a type.
2002-09-05 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.c (s390_expand_plus_operand): Do not require

View File

@ -7652,6 +7652,8 @@ sh_expand_builtin (exp, target, subtarget, mode, ignore)
if (! signature_args[signature][i])
break;
arg = TREE_VALUE (arglist);
if (arg == error_mark_node)
return const0_rtx;
arglist = TREE_CHAIN (arglist);
opmode = insn_data[icode].operand[nop].mode;
argmode = TYPE_MODE (TREE_TYPE (arg));