I have a similar exception `Invalid module` <https...
# kotlin-native
p
I have a similar exception
Invalid module
https://kotlinlang.slack.com/archives/C3PQML5NU/p1548688304549700 for
1.3.50-eap-5
Is it possible to implement more meaningful message from `LLVMVerifyModule`as TODO here states? (if it makes sense at all) https://github.com/JetBrains/kotlin-native/blob/b0c74ec00b91038cc2e587e0017d919fd5dbbadc/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/IrToBitcode.kt#L65
the output
s
Can you provide a reproducer?
Is it possible to implement more meaningful message from `LLVMVerifyModule`as TODO here states?
Not sure if this TODO is relevant to making the message more meaningful.
p
Thanks for the answer. At the moment I’m trying to narrow it down to a problematic code, then will try to do a reproducible example.
👍 1
https://github.com/ptmt/kotlin-native-repro repo, but it’s just a single line https://github.com/ptmt/kotlin-native-repro/blob/master/invalid_module_1_3_50_eap5/src/iosMain/kotlin/App.kt,
fun a() = NSURLSessionTask().response()!! as NSHTTPURLResponse
v
thanks