[K/N] Fix compilation of metadata klibs

This commit is contained in:
Sergey Bogolepov
2023-01-24 12:50:14 +02:00
committed by Space Team
parent 983140ca04
commit 60900b72b7
@@ -108,9 +108,8 @@ internal class DynamicCompilerDriver : CompilerDriver() {
val psiToIrOutput = if (config.metadataKlib) {
null
} else {
engine.runPsiToIr(frontendOutput, isProducingLibrary = true)
engine.runPsiToIr(frontendOutput, isProducingLibrary = true) as PsiToIrOutput.ForKlib
}
require(psiToIrOutput is PsiToIrOutput.ForKlib)
return engine.runSerializer(frontendOutput.moduleDescriptor, psiToIrOutput)
}