Get rid of unsafe cast function usages in :kotlin-native:backend.native

This commit is contained in:
Svyatoslav Scherbina
2022-10-07 12:25:24 +02:00
committed by Space Team
parent 3e1eddcf54
commit 2987340edd
12 changed files with 30 additions and 39 deletions
@@ -67,7 +67,7 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
messageCollector.report(ERROR, "K2 does not support Native target right now")
return ExitCode.COMPILATION_ERROR
}
configuration.put(CLIConfigurationKeys.PHASE_CONFIG, createPhaseConfig(toplevelPhase, arguments, messageCollector))
configuration.put(CLIConfigurationKeys.PHASE_CONFIG, createPhaseConfig(toplevelPhaseErased, arguments, messageCollector))
val enoughArguments = arguments.freeArgs.isNotEmpty() || arguments.isUsefulWithoutFreeArgs
if (!enoughArguments) {