* c-typeck.c (comptypes): Exit early on NULL input.

From-SVN: r17347
This commit is contained in:
Richard Henderson 1998-01-13 13:40:27 -08:00 committed by Jeff Law
parent c995fea195
commit 8d47dfc57f
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
Tue Jan 13 22:39:40 1998 Richard Henderson (rth@cygnus.com)
* c-typeck.c (comptypes): Exit early on NULL input.
* haifa-sched.c (schedule_insns): Correctly remove inter-block
dependencies after reload.

View File

@ -441,7 +441,8 @@ comptypes (type1, type2)
/* Suppress errors caused by previously reported errors. */
if (t1 == t2 || TREE_CODE (t1) == ERROR_MARK || TREE_CODE (t2) == ERROR_MARK)
if (t1 == t2 || !t1 || !t2
|| TREE_CODE (t1) == ERROR_MARK || TREE_CODE (t2) == ERROR_MARK)
return 1;
/* Treat an enum type as the integer type of the same width and