Move Kotlin version to 1.1.4, fix some warnings. (#802)
This commit is contained in:
@@ -39,6 +39,7 @@ import kotlin.reflect.KFunction
|
||||
private fun maybeExecuteHelper(targetName: String) {
|
||||
try {
|
||||
val kClass = Class.forName("org.jetbrains.kotlin.konan.Helper0").kotlin
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
val ctor = kClass.constructors.single() as KFunction<Runnable>
|
||||
val distribution = Distribution(TargetManager(targetName))
|
||||
val result = ctor.call(
|
||||
|
||||
+1
-1
@@ -127,7 +127,7 @@ internal fun produceOutput(context: Context) {
|
||||
llvmModule,
|
||||
nopack,
|
||||
manifest,
|
||||
context.moduleEscapeAnalysisResult?.build()?.toByteArray())
|
||||
context.moduleEscapeAnalysisResult.build().toByteArray())
|
||||
|
||||
context.library = library
|
||||
context.bitcodeFileName = library.mainBitcodeFileName
|
||||
|
||||
+1
-1
@@ -150,7 +150,7 @@ internal fun structType(types: List<LLVMTypeRef>): LLVMTypeRef =
|
||||
|
||||
internal fun ContextUtils.numParameters(functionType: LLVMTypeRef) : Int {
|
||||
// Note that type is usually function pointer, so we have to dereference it.
|
||||
return LLVMCountParamTypes(LLVMGetElementType(functionType))!!
|
||||
return LLVMCountParamTypes(LLVMGetElementType(functionType))
|
||||
}
|
||||
|
||||
internal fun ContextUtils.isObjectReturn(functionType: LLVMTypeRef) : Boolean {
|
||||
|
||||
Reference in New Issue
Block a user