Kx-serialization: support SerialInfo for JVM IR

No tests added because this is going to be checked by the upcoming build
of kotlinx-serialization runtime with JVM IR.

 #KT-42976 In Progress
This commit is contained in:
Alexander Udalov
2020-10-27 21:00:01 +01:00
parent e4ba787034
commit 51ded98c4b
6 changed files with 124 additions and 20 deletions
@@ -218,7 +218,9 @@ class ExpressionCodegen(
mv.visitLineNumber(1, startLabel)
}
val info = BlockInfo()
val body = irFunction.body!!
val body = irFunction.body
?: error("Function has no body: ${irFunction.render()}")
generateNonNullAssertions()
generateFakeContinuationConstructorIfNeeded()
val result = body.accept(this, info)