Do not use typeMapper.mapAsmMethod for erased invoke in MethodInliner

Return type of erased `invoke` is always java/lang/Object anyway
This commit is contained in:
Alexander Udalov
2019-08-30 13:36:22 +02:00
parent 4953f67563
commit 2648fb2ddd
@@ -303,10 +303,9 @@ class MethodInliner(
result.mergeWithNotChangeInfo(lambdaResult)
result.reifiedTypeParametersUsages.mergeAll(lambdaResult.reifiedTypeParametersUsages)
val bridge = typeMapper.mapAsmMethod(erasedInvokeFunction)
StackValue
.onStack(info.invokeMethod.returnType, info.invokeMethodDescriptor.returnType)
.put(bridge.returnType, erasedInvokeFunction.returnType, this)
.put(OBJECT_TYPE, erasedInvokeFunction.returnType, this)
setLambdaInlining(false)
addInlineMarker(this, false)
childSourceMapper.endMapping()