diff options
author | Andreas Gampe <agampe@google.com> | 2014-06-13 13:44:40 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-06-13 13:46:51 -0700 |
commit | 4439596b00c91f565370bf0813cc2f9165093693 (patch) | |
tree | 2e2e9ccaea2cea7e4066f2b90cfab50f36b4f099 /compiler/dex/frontend.cc | |
parent | 08eeb38bb95dbb41dbdb0ea023749889b126af61 (diff) | |
download | android_art-4439596b00c91f565370bf0813cc2f9165093693.tar.gz android_art-4439596b00c91f565370bf0813cc2f9165093693.tar.bz2 android_art-4439596b00c91f565370bf0813cc2f9165093693.zip |
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
Diffstat (limited to 'compiler/dex/frontend.cc')
-rw-r--r-- | compiler/dex/frontend.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |