diff options
Diffstat (limited to 'src/compiler/codegen/arm/MethodCodegenDriver.cc')
| -rw-r--r-- | src/compiler/codegen/arm/MethodCodegenDriver.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/compiler/codegen/arm/MethodCodegenDriver.cc b/src/compiler/codegen/arm/MethodCodegenDriver.cc index 9f89ff9807..1b7e4ed1a4 100644 --- a/src/compiler/codegen/arm/MethodCodegenDriver.cc +++ b/src/compiler/codegen/arm/MethodCodegenDriver.cc @@ -52,15 +52,8 @@ static void genNewArray(CompilationUnit* cUnit, MIR* mir, RegLocation rlDest, static void genFilledNewArray(CompilationUnit* cUnit, MIR* mir, bool isRange) { DecodedInstruction* dInsn = &mir->dalvikInsn; - int elems; - int typeId; - if (isRange) { - elems = dInsn->vA; - typeId = dInsn->vB; - } else { - elems = dInsn->vB; - typeId = dInsn->vC; - } + int elems = dInsn->vA; + int typeId = dInsn->vB; oatFlushAllRegs(cUnit); /* Everything to home location */ loadWordDisp(cUnit, rSELF, OFFSETOF_MEMBER(Thread, pCheckAndAllocFromCode), rLR); |