Fix -produce framework broken by 9d14a29f

This commit is contained in:
Svyatoslav Scherbina
2017-12-15 17:35:31 +03:00
committed by SvyatoslavScherbina
parent 9d14a29f49
commit d7d0bcb92b
2 changed files with 20 additions and 10 deletions
@@ -306,8 +306,12 @@ private fun ObjCExportCodeGenerator.setObjCExportTypeInfo(
objCClass: ConstPointer? = null,
typeAdapter: ConstPointer? = null
) {
if (converter != null) {
assert(converter.llvmType == pointerType(functionType(int8TypePtr, false, codegen.kObjHeaderPtr)))
}
val objCExportAddition = Struct(runtime.typeInfoObjCExportAddition,
converter,
converter?.bitcast(int8TypePtr),
objCClass,
typeAdapter
)