mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-09 19:11:14 +08:00
* c-typeck.c (comptypes): Exit early on NULL input.
From-SVN: r17347
This commit is contained in:
parent
c995fea195
commit
8d47dfc57f
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user