[K/N] Fixes in tests and check function in optimized mode

This commit is contained in:
Elena Lepilkina
2021-10-29 17:40:09 +03:00
committed by Space
parent 4d1c2c90d6
commit d8c9536edd
3 changed files with 3 additions and 3 deletions
@@ -1058,7 +1058,8 @@ internal abstract class FunctionGenerationContext(
}
fun generateFrameCheck() {
call(context.llvm.checkCurrentFrameFunction, listOf(slotsPhi!!))
if (!context.shouldOptimize())
call(context.llvm.checkCurrentFrameFunction, listOf(slotsPhi!!))
}
inline fun ifThenElse(
@@ -5135,7 +5135,6 @@ dynamicTest("interop_exceptions_throwThroughBridge") {
interopTest("interop_exceptions_cCallback") {
disabled = (project.testTarget == 'wasm32') // Uses exceptions
source = "interop/exceptions/cCallback.kt"
expectedExitStatusChecker = { it == 0 }
outputChecker = { s -> s.contains("CATCH IN C++") }
interop = "exceptions_cCallback"
}
@@ -18,7 +18,7 @@ suspend fun suspendForever(): Int = suspendCoroutineUninterceptedOrReturn {
}
// 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"
suspend fun foo(): Nothing {
suspendForever()