backend: Remove workaround for IrSetterCallImpl problem
This commit is contained in:
-7
@@ -84,13 +84,6 @@ abstract class AbstractClosureAnnotator : IrElementVisitorVoid {
|
|||||||
closuresStack.peek()?.addNested(closure)
|
closuresStack.peek()?.addNested(closure)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: remove as soon as bug in IrSetterCallImpl is fixed.
|
|
||||||
override fun visitCall(expression: IrCall) {
|
|
||||||
super.visitCall(expression)
|
|
||||||
if (expression is IrSetterCallImpl)
|
|
||||||
visitElement(expression.getValueArgument(0)!!)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun visitFunction(declaration: IrFunction) {
|
override fun visitFunction(declaration: IrFunction) {
|
||||||
val functionDescriptor = declaration.descriptor
|
val functionDescriptor = declaration.descriptor
|
||||||
val closureBuilder = FunctionClosureBuilder(functionDescriptor)
|
val closureBuilder = FunctionClosureBuilder(functionDescriptor)
|
||||||
|
|||||||
-7
@@ -645,13 +645,6 @@ class LocalDeclarationsLowering(val context: BackendContext) : DeclarationContai
|
|||||||
element.acceptChildrenVoid(this)
|
element.acceptChildrenVoid(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: remove as soon as bug in IrSetterCallImpl is fixed.
|
|
||||||
override fun visitCall(expression: IrCall) {
|
|
||||||
super.visitCall(expression)
|
|
||||||
if (expression is IrSetterCallImpl)
|
|
||||||
visitElement(expression.getValueArgument(0)!!)
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun DeclarationDescriptor.declaredInFunction() = when (this.containingDeclaration) {
|
private fun DeclarationDescriptor.declaredInFunction() = when (this.containingDeclaration) {
|
||||||
is CallableDescriptor -> true
|
is CallableDescriptor -> true
|
||||||
is ClassDescriptor -> false
|
is ClassDescriptor -> false
|
||||||
|
|||||||
Reference in New Issue
Block a user