backend: Remove workaround for IrSetterCallImpl problem

This commit is contained in:
Ilya Matveev
2017-02-08 17:58:03 +03:00
committed by ilmat192
parent 369c4d1959
commit 8c554aa4c7
2 changed files with 0 additions and 14 deletions
@@ -84,13 +84,6 @@ abstract class AbstractClosureAnnotator : IrElementVisitorVoid {
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) {
val functionDescriptor = declaration.descriptor
val closureBuilder = FunctionClosureBuilder(functionDescriptor)
@@ -645,13 +645,6 @@ class LocalDeclarationsLowering(val context: BackendContext) : DeclarationContai
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) {
is CallableDescriptor -> true
is ClassDescriptor -> false