Index: pkg/compiler/lib/src/kernel/kernel_visitor.dart |
diff --git a/pkg/compiler/lib/src/kernel/kernel_visitor.dart b/pkg/compiler/lib/src/kernel/kernel_visitor.dart |
index e6ed1e475a1b2cc5d6d200fa58713f8de56e429d..39a1a8d82024747a9ee131a5496efe576781eb37 100644 |
--- a/pkg/compiler/lib/src/kernel/kernel_visitor.dart |
+++ b/pkg/compiler/lib/src/kernel/kernel_visitor.dart |
@@ -1158,13 +1158,8 @@ class KernelVisitor extends Object |
ir.Expression buildConstructorInvoke(NewExpression node, {bool isConst}) { |
ConstructorElement constructor = elements[node.send]; |
- ConstructorTarget target; |
- if (isConst) { |
- target = |
- kernel.computeEffectiveTarget(constructor, elements.getType(node)); |
- } else { |
- target = new ConstructorTarget(constructor, elements.getType(node)); |
- } |
+ ConstructorTarget target = |
+ kernel.computeEffectiveTarget(constructor, elements.getType(node)); |
NodeList arguments = node.send.argumentsNode; |
if (kernel.isSyntheticError(target.element)) { |
return new ir.MethodInvocation(new ir.InvalidExpression(), |