Chromium Code Reviews| 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 fcbc105b9e001e8c6e6289483e07419bb857087a..e7f7d6e4efd26ab02961e68c62a1ea6edc291ce2 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart |
| @@ -2740,8 +2740,8 @@ class SsaBuilder extends ResolvedVisitor implements Visitor { |
| } |
| HInstruction instruction; |
| - if (RuntimeTypeInformation.hasTypeArguments(type) || |
| - type.element.isTypeVariable()) { |
| + if ((RuntimeTypeInformation.hasTypeArguments(type) && |
| + type.element.isClass()) || type.element.isTypeVariable()) { |
|
floitsch
2012/12/07 15:30:15
this looks too much like && (... || ...)
please br
karlklose
2012/12/11 08:40:05
The change was actually not necessary anymore. Rem
|
| HInstruction typeInfo = getRuntimeTypeInfo(expression); |
| // TODO(karlklose): make isSubtype a HInstruction to enable |
| // optimizations? |