Don't shadow a member variable when attempting to reset it. (bug 732945, r=jandem)
authorMarty Rosenberg <mrosenberg@mozilla.com>
Tue, 06 Mar 2012 02:05:51 -0800
changeset 89294 9f5a72b6b814f98dad5285d5e6a98b31cd5fe7d5
parent 89293 863a496c7cb8d9195a09f9d9e8ce2ce89162dfa1
child 89295 bd6f0d8274571f8d08a88934a4157f438a8621ad
push id684
push usermrosenberg@mozilla.com
push dateTue, 06 Mar 2012 10:36:52 +0000
reviewersjandem
bugs732945
milestone13.0a1
Don't shadow a member variable when attempting to reset it. (bug 732945, r=jandem)
js/src/ion/shared/IonAssemblerBufferWithConstantPools.h
--- a/js/src/ion/shared/IonAssemblerBufferWithConstantPools.h
+++ b/js/src/ion/shared/IonAssemblerBufferWithConstantPools.h
@@ -165,17 +165,17 @@ struct Pool {
         }
         memcpy(&poolData[numEntries * immSize], data, immSize);
         loadOffsets.append(off.getOffset());
         return numEntries++;
     }
 
     bool reset() {
         numEntries = 0;
-        uint32 buffSize = 8;
+        buffSize = 8;
         poolData = static_cast<uint8*>(malloc(buffSize * immSize));
         if (poolData == NULL)
             return false;
         other = new Pool(other->maxOffset, other->immSize, other->instSize, other->bias,
                          other->alignment, other->isBackref, other->canDedup);
         if (other == NULL)
             return false;
         new (&loadOffsets) LoadOffsets;