[IR] Moved up a lowering

This concerns NothingValueExceptionLowering - it must be run before the
suspend functions lowering (see codegen/coroutines/returnsNothing1 why)
This commit is contained in:
Igor Chevdar
2020-05-27 20:51:16 +05:00
parent 73fc92a2b5
commit 3ac7a59b97
2 changed files with 2 additions and 2 deletions
@@ -309,7 +309,7 @@ internal val coroutinesPhase = makeKonanFileLoweringPhase(
::NativeSuspendFunctionsLowering,
name = "Coroutines",
description = "Coroutines lowering",
prerequisite = setOf(localFunctionsPhase, finallyBlocksPhase)
prerequisite = setOf(localFunctionsPhase, finallyBlocksPhase, kotlinNothingValueExceptionPhase)
)
internal val typeOperatorPhase = makeKonanFileLoweringPhase(
@@ -351,11 +351,11 @@ internal val allLoweringsPhase = namedIrModulePhase(
interopPhase then
varargPhase then
compileTimeEvaluatePhase then
kotlinNothingValueExceptionPhase then
coroutinesPhase then
typeOperatorPhase then
bridgesPhase then
autoboxPhase then
kotlinNothingValueExceptionPhase then
returnsInsertionPhase
),
actions = setOf(defaultDumper, ::moduleValidationCallback)