OSDN Git Service

Fix a use of uninitialized variable found by gcc-4.6. I don't think this is a
authorDoug Kwan <dougkwan@google.com>
Sun, 26 Jun 2011 19:26:18 +0000 (12:26 -0700)
committerDoug Kwan <dougkwan@google.com>
Sun, 26 Jun 2011 19:26:18 +0000 (12:26 -0700)
real problem as we will only see an undefined value if the list has no instructions other than NOPs.

Change-Id: I055510831ca1c566e2daa2b4b2acbaa655fa735a

vm/compiler/codegen/arm/LocalOptimizations.cpp

index ffeaa57..b89437e 100644 (file)
@@ -311,7 +311,7 @@ static void applyLoadHoisting(CompilationUnit *cUnit,
         u8 stopDefRegMask = thisLIR->defMask & ~ENCODE_MEM;
 
         int nextSlot = 0;
-        bool stopHere;
+        bool stopHere = false;
 
         /* Try to hoist the load to a good spot */
         for (checkLIR = PREV_LIR(thisLIR);