Add return statement to fix build break, a=bustage
authorChris Leary <cdleary@mozilla.com>
Fri, 12 Nov 2010 19:20:10 -0800
changeset 57438 a871bd60be99e7e360306bf1c0b7f4d4394bb251
parent 57437 95e9c2e8708d3e089183a751fe2c7e2eb11d0065
child 57439 db825cadce94fa8cfd4ca77b25eb146e297c02d5
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersbustage
milestone2.0b8pre
Add return statement to fix build break, a=bustage
js/src/assembler/jit/ExecutableAllocator.h
--- a/js/src/assembler/jit/ExecutableAllocator.h
+++ b/js/src/assembler/jit/ExecutableAllocator.h
@@ -201,16 +201,17 @@ public:
 
         if (!pageSize)
             intializePageSize();
         allocator->m_smallAllocationPool = ExecutablePool::create(JIT_ALLOCATOR_LARGE_ALLOC_SIZE);
         if (!allocator->m_smallAllocationPool) {
             delete allocator;
             return NULL;
         }
+        return allocator;
     }
 
     ~ExecutableAllocator() { delete m_smallAllocationPool; }
 
     // poolForSize returns reference-counted objects. The caller owns a reference
     // to the object; i.e., poolForSize increments the count before returning the
     // object.