Support function inlining lowering changes

(cherry picked from commit f161814ee9a82145138c43f2943378e045416716)
This commit is contained in:
Anton Bannykh
2020-01-24 14:09:02 +03:00
committed by Vasily Levchenko
parent 50c4f1fd41
commit c4a0f553b0
@@ -89,7 +89,11 @@ internal val arrayConstructorPhase = makeKonanModuleLoweringPhase(
internal val inlinePhase = namedIrModulePhase(
lower = object : SameTypeCompilerPhase<Context, IrModuleFragment> {
override fun invoke(phaseConfig: PhaseConfig, phaserState: PhaserState<IrModuleFragment>, context: Context, input: IrModuleFragment): IrModuleFragment {
FunctionInlining(context).inline(input)
FunctionInlining(context).run {
input.files.forEach {
lower(it)
}
}
return input
}
},