| Index: pkg/compiler/lib/src/ssa/optimize.dart
|
| diff --git a/pkg/compiler/lib/src/ssa/optimize.dart b/pkg/compiler/lib/src/ssa/optimize.dart
|
| index baccef58eb2f7943c7009aeafd1feab05cf6868a..6fbfdd8d858a76f6ff31e2c1034e1fe8cb4b51cd 100644
|
| --- a/pkg/compiler/lib/src/ssa/optimize.dart
|
| +++ b/pkg/compiler/lib/src/ssa/optimize.dart
|
| @@ -1070,17 +1070,17 @@ class SsaInstructionSimplifier extends HBaseVisitor
|
| if (constant.constant.isTrue) return constant;
|
| }
|
| }
|
| - } else if (element == commonElements.checkInt) {
|
| + } else if (commonElements.isCheckInt(element)) {
|
| if (node.inputs.length == 1) {
|
| HInstruction argument = node.inputs[0];
|
| if (argument.isInteger(_closedWorld)) return argument;
|
| }
|
| - } else if (element == commonElements.checkNum) {
|
| + } else if (commonElements.isCheckNum(element)) {
|
| if (node.inputs.length == 1) {
|
| HInstruction argument = node.inputs[0];
|
| if (argument.isNumber(_closedWorld)) return argument;
|
| }
|
| - } else if (element == commonElements.checkString) {
|
| + } else if (commonElements.isCheckString(element)) {
|
| if (node.inputs.length == 1) {
|
| HInstruction argument = node.inputs[0];
|
| if (argument.isString(_closedWorld)) return argument;
|
|
|