JVM_IR: bug fix in classFileContainsMethod

The old test sequence failed for toplevel functions because of file
class wrappers, so that the second branch was never invoked.
This commit is contained in:
Georgy Bronnikov
2020-11-30 18:53:31 +03:00
parent f50480d258
commit 4607eca987
11 changed files with 53 additions and 2 deletions
@@ -577,7 +577,8 @@ abstract class InlineCodegen<out T : BaseExpressionCodegen>(
doCreateMethodNodeFromCompiled(directMember, state, jvmSignature.asmMethod)
else
null
result ?: throw IllegalStateException("Couldn't obtain compiled function body for $functionDescriptor")
result ?:
throw IllegalStateException("Couldn't obtain compiled function body for $functionDescriptor")
}
return SMAPAndMethodNode(cloneMethodNode(resultInCache.node), resultInCache.classSMAP)