re PR java/20056 ('verification failed: incompatible type on stack' with --indirect-dispatch)
PR java/20056: * verify.cc (type::equals): Fixed test. * testsuite/libjava.lang/PR20056.out: New file. * testsuite/libjava.lang/PR20056.java: New file. From-SVN: r95266
This commit is contained in:
parent
e863ccf328
commit
b55cb4a133
4 changed files with 25 additions and 4 deletions
|
@ -754,10 +754,10 @@ private:
|
|||
bool equals (const type &other, _Jv_BytecodeVerifier *vfy)
|
||||
{
|
||||
// Only works for reference types.
|
||||
if (key != reference_type
|
||||
|| key != uninitialized_reference_type
|
||||
|| other.key != reference_type
|
||||
|| other.key != uninitialized_reference_type)
|
||||
if ((key != reference_type
|
||||
&& key != uninitialized_reference_type)
|
||||
|| (other.key != reference_type
|
||||
&& other.key != uninitialized_reference_type))
|
||||
return false;
|
||||
// Only for single-valued types.
|
||||
if (klass->ref_next || other.klass->ref_next)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue