Removed obsolete pop operation

This commit is contained in:
Mikhael Bogdanov
2014-03-27 11:31:21 +04:00
parent b3f4b79cdf
commit e1e2855887
@@ -3270,11 +3270,6 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
ConstructorDescriptor constructorDescriptor = (ConstructorDescriptor) resolvedCall.getResultingDescriptor();
MutableClosure closure = bindingContext.get(CLOSURE, constructorDescriptor.getContainingDeclaration());
ClassDescriptor descriptor = getExpectedThisObjectForConstructorCall(constructorDescriptor, closure);
if (receiver.type.getSort() != Type.VOID && descriptor == null) {
v.pop();
}
//Resolved call to local class constructor doesn't have resolvedCall.getThisObject() and resolvedCall.getReceiverArgument()
//so we need generate closure on stack
//See StackValue.receiver for more info