mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 22:10:19 +02:00
* don't insert checkcast operations for types that are considered to be
te_equal git-svn-id: branches/jvmbackend@18529 -
This commit is contained in:
parent
e8ec2c45af
commit
b8f6c42ec7
@ -494,8 +494,9 @@ implementation
|
||||
get_most_nested_types(fromdef,todef);
|
||||
fromarrtype:=jvmarrtype_setlength(fromdef);
|
||||
toarrtype:=jvmarrtype_setlength(todef);
|
||||
if not fromdef.is_related(todef) and
|
||||
(((fromdef.typ<>objectdef) and
|
||||
if (compare_defs(fromdef,todef,nothingn)<te_equal) and
|
||||
not fromdef.is_related(todef) and
|
||||
(((fromdef.typ in [objectdef,recorddef,stringdef]) and
|
||||
not is_dynamic_array(fromdef)) or
|
||||
(todef<>java_jlobject)) and
|
||||
((fromarrtype in ['A','R']) or
|
||||
|
Loading…
Reference in New Issue
Block a user