natario1
01/08/2023, 2:33 PMirCall(suspendFunction)
and no matter how simple the function is - say yield() - native linking fails:
java.lang.AssertionError: Assertion failed
at org.jetbrains.kotlin.backend.konan.llvm.DebugUtilsKt.location(DebugUtils.kt:99)
at org.jetbrains.kotlin.backend.konan.llvm.DebugUtilsKt.line(DebugUtils.kt:108)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.startLine(IrToBitcode.kt:2153)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.debugFieldDeclaration(IrToBitcode.kt:2179)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitField(IrToBitcode.kt:958)
To add more confusion, the stack trace above references a field even though there are none, I’m calling a suspend function from a suspend function, inside a class with no fields.