From cdafe680c2353d46fd1f00549e158a4c5f2fa8b0 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Mon, 9 Sep 2019 18:33:37 +0000 Subject: [PATCH] * 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 - --- compiler/llvm/nllvmcnv.pas | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/llvm/nllvmcnv.pas b/compiler/llvm/nllvmcnv.pas index b990dd9339..5cb750491d 100644 --- a/compiler/llvm/nllvmcnv.pas +++ b/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