| Index: dart/frog/leg/ssa/optimize.dart
|
| diff --git a/dart/frog/leg/ssa/optimize.dart b/dart/frog/leg/ssa/optimize.dart
|
| index 45765a4d03ff355ab867854188ddd4e76b40a737..dfe1f9452b7eea7818b32e94e7b1f026e8ee4449 100644
|
| --- a/dart/frog/leg/ssa/optimize.dart
|
| +++ b/dart/frog/leg/ssa/optimize.dart
|
| @@ -246,7 +246,8 @@ class SsaDeadCodeEliminator extends HGraphVisitor {
|
| // (e.g. branching instructions have side effects).
|
| return !instruction.hasSideEffects()
|
| && instruction.usedBy.isEmpty()
|
| - && instruction is !HCheck;
|
| + && instruction is !HCheck
|
| + && instruction is !HTypeGuard;
|
| }
|
|
|
| void visitGraph(HGraph graph) {
|
|
|