[K/N] Fixes in tests and check function in optimized mode
This commit is contained in:
+2
-1
@@ -1058,7 +1058,8 @@ internal abstract class FunctionGenerationContext(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun generateFrameCheck() {
|
fun generateFrameCheck() {
|
||||||
call(context.llvm.checkCurrentFrameFunction, listOf(slotsPhi!!))
|
if (!context.shouldOptimize())
|
||||||
|
call(context.llvm.checkCurrentFrameFunction, listOf(slotsPhi!!))
|
||||||
}
|
}
|
||||||
|
|
||||||
inline fun ifThenElse(
|
inline fun ifThenElse(
|
||||||
|
|||||||
@@ -5135,7 +5135,6 @@ dynamicTest("interop_exceptions_throwThroughBridge") {
|
|||||||
interopTest("interop_exceptions_cCallback") {
|
interopTest("interop_exceptions_cCallback") {
|
||||||
disabled = (project.testTarget == 'wasm32') // Uses exceptions
|
disabled = (project.testTarget == 'wasm32') // Uses exceptions
|
||||||
source = "interop/exceptions/cCallback.kt"
|
source = "interop/exceptions/cCallback.kt"
|
||||||
expectedExitStatusChecker = { it == 0 }
|
|
||||||
outputChecker = { s -> s.contains("CATCH IN C++") }
|
outputChecker = { s -> s.contains("CATCH IN C++") }
|
||||||
interop = "exceptions_cCallback"
|
interop = "exceptions_cCallback"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ suspend fun suspendForever(): Int = suspendCoroutineUninterceptedOrReturn {
|
|||||||
}
|
}
|
||||||
// CHECK-LABEL: define %struct.ObjHeader* @"kfun:$fooCOROUTINE
|
// CHECK-LABEL: define %struct.ObjHeader* @"kfun:$fooCOROUTINE
|
||||||
|
|
||||||
// CHECK-NOT: ; Function Attrs: noreturn
|
// CHECK-NOT: ; Function Attrs: {{.*}}noreturn
|
||||||
// CHECK-LABEL: define %struct.ObjHeader* @"kfun:#foo(){}kotlin.Nothing"
|
// CHECK-LABEL: define %struct.ObjHeader* @"kfun:#foo(){}kotlin.Nothing"
|
||||||
suspend fun foo(): Nothing {
|
suspend fun foo(): Nothing {
|
||||||
suspendForever()
|
suspendForever()
|
||||||
|
|||||||
Reference in New Issue
Block a user