diff options
| -rw-r--r-- | compiler/dex/mir_graph.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/dex/mir_graph.cc b/compiler/dex/mir_graph.cc index 936fb3da21..dda9e7781e 100644 --- a/compiler/dex/mir_graph.cc +++ b/compiler/dex/mir_graph.cc @@ -1153,7 +1153,7 @@ bool BasicBlock::RemoveMIRList(MIR* first_list_mir, MIR* last_list_mir) { } // Remove the BB information and also find the after_list. - for (MIR* mir = first_list_mir; mir != last_list_mir; mir = mir->next) { + for (MIR* mir = first_list_mir; mir != last_list_mir->next; mir = mir->next) { mir->bb = NullBasicBlockId; } |