re PR java/20056 ('verification failed: incompatible type on stack' with --indirect-dispatch)

PR java/20056:
	* verify-impl.c (types_equal): Fixed test.

From-SVN: r95267
This commit is contained in:
Tom Tromey 2005-02-19 04:02:09 +00:00 committed by Tom Tromey
parent b55cb4a133
commit e022a6cb91
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2005-02-18 Tom Tromey <tromey@redhat.com>
PR java/20056:
* verify-impl.c (types_equal): Fixed test.
PR java/20056:
* verify-glue.c (vfy_class_has_field): New function.
* verify.h (vfy_class_has_field): Declare.

View File

@ -743,8 +743,9 @@ types_compatible (type *t, type *k)
static bool
types_equal (type *t1, type *t2)
{
if (t1->key != reference_type || t1->key != uninitialized_reference_type
|| t2->key != reference_type || t2->key != uninitialized_reference_type)
if ((t1->key != reference_type && t1->key != uninitialized_reference_type)
|| (t2->key != reference_type
&& t2->key != uninitialized_reference_type))
return false;
/* Only single-ref types are allowed. */
if (t1->klass->ref_next || t2->klass->ref_next)