| Index: sdk/lib/_internal/compiler/implementation/ssa/types_propagation.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/ssa/types_propagation.dart (revision 23841)
|
| +++ sdk/lib/_internal/compiler/implementation/ssa/types_propagation.dart (working copy)
|
| @@ -355,7 +355,7 @@
|
| }
|
| // TODO(ngeoffray): Allow speculative optimizations on
|
| // non-primitive types?
|
| - if (!desiredType.isPrimitive()) return newType;
|
| + if (!desiredType.isPrimitive(compiler)) return newType;
|
| desiredType = newType.intersection(desiredType, compiler);
|
| if (desiredType != newType && !hasBeenSpeculativelyOptimized(instruction)) {
|
| savedTypes[instruction] = oldType;
|
|
|