OSDN Git Service

Remove incorrect definition of nested local variables.
authorBen Cheng <bccheng@google.com>
Wed, 14 Oct 2009 06:09:01 +0000 (23:09 -0700)
committerBen Cheng <bccheng@google.com>
Wed, 14 Oct 2009 06:09:01 +0000 (23:09 -0700)
vm/compiler/codegen/arm/Codegen.c

index 2e735fa..4a85fb2 100644 (file)
@@ -2794,13 +2794,12 @@ static bool handleFmt22c(CompilationUnit *cUnit, MIR *mir)
     if (dalvikOpCode >= OP_IGET && dalvikOpCode <= OP_IPUT_SHORT) {
         InstField *pInstField = (InstField *)
             cUnit->method->clazz->pDvmDex->pResFields[mir->dalvikInsn.vC];
-        int fieldOffset;
 
         assert(pInstField != NULL);
         fieldOffset = pInstField->byteOffset;
     } else {
-        /* To make the compiler happy */
-        fieldOffset = 0;
+        /* Deliberately break the code while make the compiler happy */
+        fieldOffset = -1;
     }
     switch (dalvikOpCode) {
         case OP_NEW_ARRAY: {