From 12d694de46b955bca7462d32616608bc08ea4336 Mon Sep 17 00:00:00 2001 From: Elena Lepilkina Date: Mon, 9 Aug 2021 10:15:48 +0300 Subject: [PATCH] [K/N] Added returns before building DFG --- .../org/jetbrains/kotlin/backend/konan/ToplevelPhases.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ToplevelPhases.kt b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ToplevelPhases.kt index d94852cffb9..90df9aec410 100644 --- a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ToplevelPhases.kt +++ b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ToplevelPhases.kt @@ -394,6 +394,9 @@ internal val bitcodePhase = NamedCompilerPhase( name = "Bitcode", description = "LLVM Bitcode generation", lower = contextLLVMSetupPhase then + propertyAccessorInlinePhase then // Have to run after link dependencies phase, because fields + // from dependencies can be changed during lowerings. + returnsInsertionPhase then buildDFGPhase then devirtualizationAnalysisPhase then dcePhase then @@ -404,9 +407,6 @@ internal val bitcodePhase = NamedCompilerPhase( ghaPhase then RTTIPhase then generateDebugInfoHeaderPhase then - propertyAccessorInlinePhase then // Have to run after link dependencies phase, because fields - // from dependencies can be changed during lowerings. - returnsInsertionPhase then escapeAnalysisPhase then localEscapeAnalysisPhase then codegenPhase then