Removes unnecessary constructor check. NilCheckResolver already knows that constructors don't need a nil_chk.
Change on 2017/05/17 by kstanger
@@ -750,11 +750,7 @@ public class NilCheckResolver extends UnitTreeVisitor {
@Override
public void endVisit(ThrowStatement node) {
- Expression expr = node.getExpression();
- if (!(expr.getKind() == TreeNode.Kind.CONSTRUCTOR_INVOCATION)) {
- addNilCheck(expr);
- }
-
+ addNilCheck(node.getExpression());
handleThrows();
scope.terminates = true;
}
