[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:
+1
-1
@@ -109,7 +109,7 @@ internal val buildDFGPhase = makeKonanModuleOpPhase(
|
|||||||
internal val returnsInsertionPhase = makeKonanModuleOpPhase(
|
internal val returnsInsertionPhase = makeKonanModuleOpPhase(
|
||||||
name = "ReturnsInsertion",
|
name = "ReturnsInsertion",
|
||||||
description = "Returns insertion for Unit functions",
|
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) } }
|
op = { context, irModule -> irModule.files.forEach { ReturnsInsertionLowering(context).lower(it) } }
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user