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:
parent
b55cb4a133
commit
e022a6cb91
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user