* different definitions for the same Objective-C class (can happen with

external class declarations) need a type conversion in LLVM (because
    they're represented by different LLVM types)

git-svn-id: trunk@42970 -
This commit is contained in:
Jonas Maebe 2019-09-09 18:33:37 +00:00
parent dcf4e4cb2c
commit cdafe680c2

View File

@ -87,6 +87,9 @@ class function tllvmtypeconvnode.target_specific_need_equal_typeconv(fromdef, to
{ same for two different specialisations }
((df_specialization in fromdef.defoptions) and
(df_specialization in todef.defoptions)) or
{ external objc classes referring to the same type }
(is_objc_class_or_protocol(fromdef) and
is_objc_class_or_protocol(todef)) or
{ typed from/to untyped filedef in ISO mode: have to keep because of
the get/put buffer }
((fromdef.typ=filedef) and