JVM IR: minor, fix IR builder scope for multifile bridges

This commit is contained in:
Alexander Udalov
2019-11-05 19:32:21 +01:00
parent 7a2c467bb5
commit a7d60fbf2d
@@ -159,7 +159,7 @@ private fun IrFunction.createMultifileDelegateIfNeeded(context: JvmBackendContex
// TODO: perform copy of the signature only, without body // TODO: perform copy of the signature only, without body
val function = deepCopyWithSymbols(facadeClass) val function = deepCopyWithSymbols(facadeClass)
function.body = context.createIrBuilder(symbol).irBlockBody { function.body = context.createIrBuilder(function.symbol).irBlockBody {
+irReturn(irCall(this@createMultifileDelegateIfNeeded).also { call -> +irReturn(irCall(this@createMultifileDelegateIfNeeded).also { call ->
call.passTypeArgumentsFrom(function) call.passTypeArgumentsFrom(function)
function.extensionReceiverParameter?.let { parameter -> function.extensionReceiverParameter?.let { parameter ->