[K/N][IR] Turned off prerequisite for ReturnsInsertionsPhase

Sometimes we have 0 files in the module and CompilerPhase thinks no work has been done
causing the prerequisite requirement to fail
This commit is contained in:
Igor Chevdar
2022-08-19 16:19:53 +03:00
parent 3462d4e5e8
commit d3eedd791e
@@ -109,7 +109,7 @@ internal val buildDFGPhase = makeKonanModuleOpPhase(
internal val returnsInsertionPhase = makeKonanModuleOpPhase(
name = "ReturnsInsertion",
description = "Returns insertion for Unit functions",
prerequisite = setOf(autoboxPhase, coroutinesPhase, enumClassPhase),
//prerequisite = setOf(autoboxPhase, coroutinesPhase, enumClassPhase), TODO: if there are no files in the module, this requirement fails.
op = { context, irModule -> irModule.files.forEach { ReturnsInsertionLowering(context).lower(it) } }
)