IR: don't generate IrReturn for IrDelegationCall in constructor
This commit is contained in:
committed by
vvlevchenko
parent
38c6b5e9ad
commit
7470acaeba
+2
-2
@@ -111,7 +111,7 @@ class DefaultArgumentStubGenerator internal constructor(val context: Context): D
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (functionDescriptor is ClassConstructorDescriptor) {
|
if (functionDescriptor is ClassConstructorDescriptor) {
|
||||||
+ irReturn(IrDelegatingConstructorCallImpl(
|
+ IrDelegatingConstructorCallImpl(
|
||||||
startOffset = irFunction.startOffset,
|
startOffset = irFunction.startOffset,
|
||||||
endOffset = irFunction.endOffset,
|
endOffset = irFunction.endOffset,
|
||||||
descriptor = functionDescriptor
|
descriptor = functionDescriptor
|
||||||
@@ -122,7 +122,7 @@ class DefaultArgumentStubGenerator internal constructor(val context: Context): D
|
|||||||
if (functionDescriptor.dispatchReceiverParameter != null) {
|
if (functionDescriptor.dispatchReceiverParameter != null) {
|
||||||
dispatchReceiver = irThis()
|
dispatchReceiver = irThis()
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
} else {
|
} else {
|
||||||
+irReturn(irCall(functionDescriptor).apply {
|
+irReturn(irCall(functionDescriptor).apply {
|
||||||
if (functionDescriptor.dispatchReceiverParameter != null) {
|
if (functionDescriptor.dispatchReceiverParameter != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user