JVM_IR inliner fixes: remove code that does nothing

other than randomly throw assertion errors on inline calls in synthetic
functions, which have no line number attached.

`lazySourceMapper.callSiteMarker` is set in `InlineCodegen.inlineCall`;
`IrSourceCompilerForInline.doCreateMethodNodeFromSource` does not need
to touch it.
This commit is contained in:
pyos
2019-10-22 14:21:19 +02:00
committed by Ilmir Usmanov
parent 60f4ed914a
commit 8c6916af52
2 changed files with 1 additions and 7 deletions
@@ -95,13 +95,8 @@ class IrSourceCompilerForInline(
asmMethod: Method
): SMAPAndMethodNode {
assert(callableDescriptor == callee.descriptor.original) { "Expected $callableDescriptor got ${callee.descriptor.original}" }
assert(codegen.lastLineNumber >= 0) { "lastLineNumber shall be not negative, but is ${codegen.lastLineNumber}" }
val irFunction = getFunctionToInline(jvmSignature, callDefault)
lazySourceMapper.callSiteMarker = CallSiteMarker(codegen.lastLineNumber)
val nodeAndSmap = makeInlineNode(irFunction, FakeClassCodegen(irFunction, codegen.classCodegen), false)
lazySourceMapper.callSiteMarker = null
return nodeAndSmap
return makeInlineNode(irFunction, FakeClassCodegen(irFunction, codegen.classCodegen), false)
}
private fun getFunctionToInline(jvmSignature: JvmMethodSignature, callDefault: Boolean): IrFunction {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_COROUTINES
// WITH_RUNTIME