Remove a dangerous default from oatNew and fix the bug it hid.
Funnily enough, no-one was using the default on purpose anyway.
Change-Id: Id7b576565c1929087c05834078147dbbc8e635b3
diff --git a/src/compiler/CompilerUtility.h b/src/compiler/CompilerUtility.h
index d431678..5e8e993 100644
--- a/src/compiler/CompilerUtility.h
+++ b/src/compiler/CompilerUtility.h
@@ -27,7 +27,7 @@
/* Allocate the initial memory block for arena-based allocation */
bool oatHeapInit(CompilationUnit* cUnit);
-/* Collect memory usage statstics */
+/* Collect memory usage statistics */
//#define WITH_MEMSTATS
struct ArenaMemBlock {
@@ -37,8 +37,7 @@
char ptr[0];
};
-void* oatNew(CompilationUnit* cUnit, size_t size, bool zero,
- oatAllocKind kind = kAllocMisc);
+void* oatNew(CompilationUnit* cUnit, size_t size, bool zero, oatAllocKind kind);
void oatArenaReset(CompilationUnit *cUnit);