| Index: sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/ssa/optimize.dart (revision 17441)
|
| +++ sdk/lib/_internal/compiler/implementation/ssa/optimize.dart (working copy)
|
| @@ -795,11 +795,8 @@
|
|
|
| bool isDeadCode(HInstruction instruction) {
|
| return !instruction.hasSideEffects()
|
| + && !instruction.canThrow()
|
| && instruction.usedBy.isEmpty
|
| - // A dynamic getter that has no side effect can still throw
|
| - // a NoSuchMethodError.
|
| - && instruction is !HInvokeDynamicGetter
|
| - && instruction is !HCheck
|
| && instruction is !HTypeGuard
|
| && instruction is !HParameterValue
|
| && instruction is !HLocalSet
|
|
|