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.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()
|
||||
|
||||
Reference in New Issue
Block a user