From 2469e60e6ff08c2a0b4cd1e209246c5d91027679 Mon Sep 17 00:00:00 2001 From: Jean Christophe Beyler Date: Tue, 6 May 2014 20:36:55 -0700 Subject: ART: Setting up cleanup - Moved code around to actually have the clean-up code in a PassDriver format. This allows us to better control what is being called after an optimization It also allows the use of a centralized pass system for both optimizations and cleanup. Change-Id: I9d21e9bb9ee663739722f440d82adf04f73e380c Signed-off-by: Jean Christophe Beyler Signed-off-by: Razvan A Lupusoru Signed-off-by: Yixin Shou Signed-off-by: Chao-ying Fu Signed-off-by: Udayan Banerji --- compiler/dex/mir_optimization_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/dex/mir_optimization_test.cc') diff --git a/compiler/dex/mir_optimization_test.cc b/compiler/dex/mir_optimization_test.cc index 86092b6e3d..69c394f168 100644 --- a/compiler/dex/mir_optimization_test.cc +++ b/compiler/dex/mir_optimization_test.cc @@ -193,7 +193,7 @@ class ClassInitCheckEliminationTest : public testing::Test { ASSERT_TRUE(gate_result); RepeatingPreOrderDfsIterator iterator(cu_.mir_graph.get()); bool change = false; - for (BasicBlock *bb = iterator.Next(change); bb != 0; bb = iterator.Next(change)) { + for (BasicBlock* bb = iterator.Next(change); bb != nullptr; bb = iterator.Next(change)) { change = cu_.mir_graph->EliminateClassInitChecks(bb); } cu_.mir_graph->EliminateClassInitChecksEnd(); -- cgit v1.2.3-59-g8ed1b