diff options
| author | 2018-09-21 15:35:50 +0000 | |
|---|---|---|
| committer | 2018-09-21 15:35:50 +0000 | |
| commit | f8120a1c91e17c63c4545f07210a1e11d21dcc1c (patch) | |
| tree | f654a3aefcfc903de035650e44bce147593ab7fe /compiler/utils | |
| parent | 7ee67be05356a74bc993b7afa67439cb2f6c6a57 (diff) | |
| parent | c74d9cbd4c7b1b5b1a4c5a6bb34e9426336bbecc (diff) | |
Merge "ART: Modernize counting-down loops"
Diffstat (limited to 'compiler/utils')
| -rw-r--r-- | compiler/utils/mips/assembler_mips.cc | 2 | ||||
| -rw-r--r-- | compiler/utils/mips64/assembler_mips64.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/utils/mips/assembler_mips.cc b/compiler/utils/mips/assembler_mips.cc index c0b6f988d4..1ba535f4c3 100644 --- a/compiler/utils/mips/assembler_mips.cc +++ b/compiler/utils/mips/assembler_mips.cc @@ -3610,7 +3610,7 @@ void MipsAssembler::FinalizeLabeledBranch(MipsLabel* label) { label->LinkTo(branch_id); } // Reserve space for the branch. - while (length--) { + for (; length != 0u; --length) { Nop(); } } diff --git a/compiler/utils/mips64/assembler_mips64.cc b/compiler/utils/mips64/assembler_mips64.cc index 5b1c5d9e01..6df9562fd5 100644 --- a/compiler/utils/mips64/assembler_mips64.cc +++ b/compiler/utils/mips64/assembler_mips64.cc @@ -2889,7 +2889,7 @@ void Mips64Assembler::FinalizeLabeledBranch(Mips64Label* label) { label->LinkTo(branch_id); } // Reserve space for the branch. - while (length--) { + for (; length != 0u; --length) { Nop(); } } |