| Index: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| index 37585d821ce07f8d0520502623d728bbfa8b51b8..70713dad882d0a1001d0ca5d9df52d3f68575730 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| @@ -3675,7 +3675,13 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
|
| Element element = elements[node];
|
| if (element.isClass() || element.isTypedef()) {
|
| // TODO(karlklose): add type representation
|
| - stack.add(addConstant(node));
|
| + if (node.isCall) {
|
| + // The node itself is not a constant but we register the selector (the
|
| + // identifier that refers to the class/typedef) as a constant.
|
| + stack.add(addConstant(node.selector));
|
| + } else {
|
| + stack.add(addConstant(node));
|
| + }
|
| } else if (element.isTypeVariable()) {
|
| HInstruction value =
|
| addTypeVariableReference(element.computeType(compiler));
|
|
|