| Index: runtime/vm/constant_propagator.cc
|
| diff --git a/runtime/vm/constant_propagator.cc b/runtime/vm/constant_propagator.cc
|
| index 75b41ca2069c7137c3f8c0f827b2c6c669f42fdb..b5b26463444c8d87702c3a7e01c54d620d29ac16 100644
|
| --- a/runtime/vm/constant_propagator.cc
|
| +++ b/runtime/vm/constant_propagator.cc
|
| @@ -1378,7 +1378,7 @@ void ConstantPropagator::EliminateRedundantBranches() {
|
| BlockEntryInstr* block = b.Current();
|
| BranchInstr* branch = block->last_instruction()->AsBranch();
|
| empty_blocks->Clear();
|
| - if ((branch != NULL) && branch->Effects().IsNone()) {
|
| + if ((branch != NULL) && !branch->HasUnknownSideEffects()) {
|
| ASSERT(branch->previous() != NULL); // Not already eliminated.
|
| BlockEntryInstr* if_true =
|
| FindFirstNonEmptySuccessor(branch->true_successor(), empty_blocks);
|
|
|