From 4439596b00c91f565370bf0813cc2f9165093693 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Fri, 13 Jun 2014 13:44:40 -0700 Subject: ART: Hide unreachable basic blocks in the compiler Unreachable blocks are not handled uniformly in the optimization passes. Uniformly hide them to avoid initialization errors. Bug: 15573463 Change-Id: Ia9e89fa357d5672a6cd8389f28a06ff618fe60ee --- compiler/dex/frontend.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/dex/frontend.cc') diff --git a/compiler/dex/frontend.cc b/compiler/dex/frontend.cc index d45379712b..ca15964b92 100644 --- a/compiler/dex/frontend.cc +++ b/compiler/dex/frontend.cc @@ -756,7 +756,7 @@ static bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file, support_list_size = arraysize(x86_64_support_list); } - for (int idx = 0; idx < cu.mir_graph->GetNumBlocks(); idx++) { + for (unsigned int idx = 0; idx < cu.mir_graph->GetNumBlocks(); idx++) { BasicBlock* bb = cu.mir_graph->GetBasicBlock(idx); if (bb == NULL) continue; if (bb->block_type == kDead) continue; -- cgit v1.2.3-59-g8ed1b