diff options
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index efc2062..2a62bd3 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -321,6 +321,9 @@ namespace { MemoryRangeHeader *MemRange = I->second; assert(MemRange->ThisAllocated && "Block isn't allocated!"); + // Fill the buffer with garbage! + DEBUG(memset(MemRange+1, 0xCD, MemRange->BlockSize-sizeof(*MemRange))); + // Free the memory. FreeMemoryList = MemRange->FreeBlock(FreeMemoryList); |