Don't omit Objective-C default library linking if category method used

This commit is contained in:
Svyatoslav Scherbina
2019-05-13 12:27:24 +03:00
committed by SvyatoslavScherbina
parent c3e6ec731d
commit dcd773ece5
@@ -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,