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,
|
call: IrFunctionAccessExpression,
|
||||||
method: IrSimpleFunction
|
method: IrSimpleFunction
|
||||||
): IrExpression = generateWithStubs(call) {
|
): IrExpression = generateWithStubs(call) {
|
||||||
|
if (method.parent !is IrClass) {
|
||||||
|
// Category-provided.
|
||||||
|
this@InteropLoweringPart1.context.llvmImports.add(method.llvmSymbolOrigin)
|
||||||
|
}
|
||||||
|
|
||||||
this.generateObjCCall(
|
this.generateObjCCall(
|
||||||
this@genLoweredObjCMethodCall,
|
this@genLoweredObjCMethodCall,
|
||||||
method,
|
method,
|
||||||
|
|||||||
Reference in New Issue
Block a user