Chromium Code Reviews| Index: runtime/vm/flow_graph_allocator.cc |
| diff --git a/runtime/vm/flow_graph_allocator.cc b/runtime/vm/flow_graph_allocator.cc |
| index ed0d2625bb29057dc9d1e6904ce30ac9e043dfd7..ba81b7051fd1d88b6c45a0db64e6b282649a644e 100644 |
| --- a/runtime/vm/flow_graph_allocator.cc |
| +++ b/runtime/vm/flow_graph_allocator.cc |
| @@ -1353,8 +1353,9 @@ LiveRange* LiveRange::SplitAt(intptr_t split_pos) { |
| ASSERT(split_pos < End()); |
| - // Corner case. We need to start over to find previous interval. |
| - if (interval->start() == split_pos) interval = first_use_interval_; |
| + // Corner case. Split position can be inside the lifetime hole or at its |
|
Florian Schneider
2012/10/22 13:08:53
did you mean: inside _a_ lifetime hole?
|
| + // end. We need to start over to find the previous interval. |
| + if (split_pos <= interval->start()) interval = first_use_interval_; |
| UseInterval* last_before_split = NULL; |
| while (interval->end() <= split_pos) { |