diff options
| author | 2014-04-28 15:22:52 +0000 | |
|---|---|---|
| committer | 2014-04-28 15:22:52 +0000 | |
| commit | 53e5d10036a5d4fdf84b32354c11dd8f2140b8ab (patch) | |
| tree | ee092fff06e0eb1045861ffa429f4a94399aca69 /compiler/optimizing/code_generator.cc | |
| parent | 0f73e2ee44977b9b5cfe42f6c4c3b6a407e92368 (diff) | |
| parent | c32e770f21540e4e9eda6dc7f770e745d33f1b9f (diff) | |
Merge "Add a Transform to SSA phase to the optimizing compiler."
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
| -rw-r--r-- | compiler/optimizing/code_generator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index 7e63c69f5c..babb1f5628 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -47,7 +47,7 @@ void CodeGenerator::CompileBlock(HBasicBlock* block) { Bind(GetLabelOf(block)); HGraphVisitor* location_builder = GetLocationBuilder(); HGraphVisitor* instruction_visitor = GetInstructionVisitor(); - for (HInstructionIterator it(block); !it.Done(); it.Advance()) { + for (HInstructionIterator it(*block->GetInstructions()); !it.Done(); it.Advance()) { HInstruction* current = it.Current(); current->Accept(location_builder); InitLocations(current); @@ -57,7 +57,7 @@ void CodeGenerator::CompileBlock(HBasicBlock* block) { void CodeGenerator::InitLocations(HInstruction* instruction) { if (instruction->GetLocations() == nullptr) return; - for (int i = 0; i < instruction->InputCount(); i++) { + for (size_t i = 0; i < instruction->InputCount(); i++) { Location location = instruction->GetLocations()->InAt(i); if (location.IsValid()) { // Move the input to the desired location. |