Don't omit Objective-C default library linking if category method used
This commit is contained in:
committed by
SvyatoslavScherbina
parent
c3e6ec731d
commit
dcd773ece5
+5
@@ -639,6 +639,11 @@ internal class InteropLoweringPart1(val context: Context) : BaseInteropIrTransfo
|
||||
call: IrFunctionAccessExpression,
|
||||
method: IrSimpleFunction
|
||||
): IrExpression = generateWithStubs(call) {
|
||||
if (method.parent !is IrClass) {
|
||||
// Category-provided.
|
||||
this@InteropLoweringPart1.context.llvmImports.add(method.llvmSymbolOrigin)
|
||||
}
|
||||
|
||||
this.generateObjCCall(
|
||||
this@genLoweredObjCMethodCall,
|
||||
method,
|
||||
|
||||
Reference in New Issue
Block a user