JVM_IR: remove two outdated comments
This commit is contained in:
-2
@@ -51,8 +51,6 @@ internal val addContinuationPhase = makeIrFilePhase(
|
||||
|
||||
private class AddContinuationLowering(context: JvmBackendContext) : SuspendLoweringUtils(context), FileLoweringPass {
|
||||
override fun lower(irFile: IrFile) {
|
||||
// This should be done after converting lambdas into classes to avoid breaking the invariant that
|
||||
// each lambda is referenced at most once while creating `$$forInline` methods.
|
||||
addContinuationObjectAndContinuationParameterToSuspendFunctions(irFile)
|
||||
addContinuationParameterToSuspendCalls(irFile)
|
||||
}
|
||||
|
||||
-1
@@ -283,7 +283,6 @@ private class SuspendLambdaLowering(context: JvmBackendContext) : SuspendLowerin
|
||||
private fun IrBlockBodyBuilder.callInvokeSuspend(invokeSuspend: IrSimpleFunction, lambda: IrExpression): IrExpression =
|
||||
irCallOp(invokeSuspend.symbol, invokeSuspend.returnType, lambda, irUnit())
|
||||
|
||||
// Primary constructor accepts parameters equal to function reference arguments + continuation and sets the fields.
|
||||
private fun IrClass.addPrimaryConstructorForLambda(superClass: IrClass, arity: Int): IrConstructor =
|
||||
addConstructor {
|
||||
origin = JvmLoweredDeclarationOrigin.SUSPEND_LAMBDA
|
||||
|
||||
Reference in New Issue
Block a user