OSDN Git Service
(root)
/
android-x86
/
art.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f038ed9
)
ART: Reset bb id to the last list mir
author
Chao-ying Fu
<chao-ying.fu@intel.com>
Tue, 23 Sep 2014 21:54:32 +0000
(14:54 -0700)
committer
Chao-ying Fu
<chao-ying.fu@intel.com>
Tue, 23 Sep 2014 21:55:21 +0000
(14:55 -0700)
This patch fixes a bug in RemoveMIRList() to reset bb id to
the last list mir.
Change-Id: I0384d8d22e357b69725f455772f55296c50bc1d3
Signed-off-by: Chao-ying Fu <chao-ying.fu@intel.com>
compiler/dex/mir_graph.cc
patch
|
blob
|
history
diff --git
a/compiler/dex/mir_graph.cc
b/compiler/dex/mir_graph.cc
index
ce56255
..
93b774c
100644
(file)
--- a/
compiler/dex/mir_graph.cc
+++ b/
compiler/dex/mir_graph.cc
@@
-1175,7
+1175,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;
}