KT-52178: Argument propagation into IR backend & lowering dump action

This commit is contained in:
Sergei Kharitontcev-Beglov
2023-06-30 17:13:40 +02:00
committed by Space Team
parent 5026778cd1
commit 55bfd3efcb
2 changed files with 3 additions and 2 deletions
@@ -340,7 +340,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
if (arguments.wasm) {
val (allModules, backendContext) = compileToLoweredIr(
depsDescriptors = module,
phaseConfig = PhaseConfig(wasmPhases),
phaseConfig = createPhaseConfig(wasmPhases, arguments, messageCollector),
irFactory = IrFactoryImpl,
exportedDeclarations = setOf(FqName("main")),
propertyLazyInitialization = arguments.irPropertyLazyInitialization,
@@ -742,5 +742,6 @@ val wasmPhases = SameTypeNamedCompilerPhase(
virtualDispatchReceiverExtractionPhase then
staticMembersLoweringPhase then
inlineObjectsWithPureInitializationLoweringPhase then
validateIrAfterLowering
validateIrAfterLowering,
actions = setOf(defaultDumper.toMultiModuleAction())
)