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:
@@ -303,10 +303,9 @@ class MethodInliner(
|
|||||||
result.mergeWithNotChangeInfo(lambdaResult)
|
result.mergeWithNotChangeInfo(lambdaResult)
|
||||||
result.reifiedTypeParametersUsages.mergeAll(lambdaResult.reifiedTypeParametersUsages)
|
result.reifiedTypeParametersUsages.mergeAll(lambdaResult.reifiedTypeParametersUsages)
|
||||||
|
|
||||||
val bridge = typeMapper.mapAsmMethod(erasedInvokeFunction)
|
|
||||||
StackValue
|
StackValue
|
||||||
.onStack(info.invokeMethod.returnType, info.invokeMethodDescriptor.returnType)
|
.onStack(info.invokeMethod.returnType, info.invokeMethodDescriptor.returnType)
|
||||||
.put(bridge.returnType, erasedInvokeFunction.returnType, this)
|
.put(OBJECT_TYPE, erasedInvokeFunction.returnType, this)
|
||||||
setLambdaInlining(false)
|
setLambdaInlining(false)
|
||||||
addInlineMarker(this, false)
|
addInlineMarker(this, false)
|
||||||
childSourceMapper.endMapping()
|
childSourceMapper.endMapping()
|
||||||
|
|||||||
Reference in New Issue
Block a user