diff options
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 28ff1cf83a..7699bf1a89 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -115,8 +115,8 @@ size_t CodeGenerator::FindFreeEntry(bool* array, size_t length) { return -1; } -size_t CodeGenerator::FindTwoFreeConsecutiveEntries(bool* array, size_t length) { - for (size_t i = 0; i < length - 1; ++i) { +size_t CodeGenerator::FindTwoFreeConsecutiveAlignedEntries(bool* array, size_t length) { + for (size_t i = 0; i < length - 1; i += 2) { if (!array[i] && !array[i + 1]) { array[i] = true; array[i + 1] = true; |