Move Kotlin version to 1.1.4, fix some warnings. (#802)

This commit is contained in:
Nikolay Igotti
2017-08-22 14:50:05 +03:00
committed by GitHub
parent 9402a9c6a2
commit 87f2bed5c8
8 changed files with 16 additions and 11 deletions
@@ -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(
@@ -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
@@ -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 {