فهرست منبع

* 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 -

Jonas Maebe 5 سال پیش
والد
کامیت
cdafe680c2
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      compiler/llvm/nllvmcnv.pas

+ 3 - 0
compiler/llvm/nllvmcnv.pas

@@ -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