| Index: sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
|
| index ffcab4d5e98b50d05897c134d93600931efd57a9..397071f86754a698c703fa15e4e7c07058143fec 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
|
| @@ -606,6 +606,10 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
|
| if (type != null && (!type.isRaw || type.kind == TypeKind.TYPE_VARIABLE)) {
|
| return node;
|
| }
|
| + if (type != null && type.kind == TypeKind.FUNCTION) {
|
| + // TODO(johnniwinther): Optimize function type conversions.
|
| + return node;
|
| + }
|
| HType convertedType = node.instructionType;
|
| if (convertedType.isUnknown()) return node;
|
| HType combinedType = value.instructionType.intersection(
|
|
|