[IR] Run lateinit lowerings on local declarations
This commit is contained in:
+4
-2
@@ -91,8 +91,10 @@ internal val arrayConstructorPhase = makeKonanModuleLoweringPhase(
|
|||||||
|
|
||||||
internal val lateinitPhase = makeKonanModuleOpPhase(
|
internal val lateinitPhase = makeKonanModuleOpPhase(
|
||||||
{ context, irModule ->
|
{ context, irModule ->
|
||||||
NullableFieldsForLateinitCreationLowering(context).lower(irModule)
|
NullableFieldsForLateinitCreationLowering(context)
|
||||||
NullableFieldsDeclarationLowering(context).lower(irModule)
|
.runPostfix(true).toFileLoweringPass().lower(irModule)
|
||||||
|
NullableFieldsDeclarationLowering(context)
|
||||||
|
.runPostfix(true).toFileLoweringPass().lower(irModule)
|
||||||
LateinitUsageLowering(context).lower(irModule)
|
LateinitUsageLowering(context).lower(irModule)
|
||||||
},
|
},
|
||||||
name = "Lateinit",
|
name = "Lateinit",
|
||||||
|
|||||||
Reference in New Issue
Block a user