[taken from gcc-2.96]

Tue Aug 29 22:09:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
	* expr.c (expand_expr): Don't blow up if type is ERROR_MARK.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9607 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2004-10-28 18:28:30 +00:00
parent 3516ced06b
commit f3bec763ba

View File

@ -5624,7 +5624,7 @@ expand_expr (exp, target, tmode, modifier)
enum expand_modifier ro_modifier;
/* Handle ERROR_MARK before anybody tries to access its type. */
if (TREE_CODE (exp) == ERROR_MARK)
if (TREE_CODE (exp) == ERROR_MARK || TREE_CODE (type) == ERROR_MARK)
{
op0 = CONST0_RTX (tmode);
if (op0 != 0)