diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-05 06:15:06 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-05 06:15:06 +0000 |
commit | fe42c702fc0a15090941ff6565f0d17f94ba8d02 (patch) | |
tree | 4bc23d8649f524bd00bcdf0dcc228ebf5d328f81 /lib/Core/MemoryManager.cpp | |
parent | 4d1f38fb2671e565b7aaeb2dd0db79b16adc3349 (diff) | |
download | klee-fe42c702fc0a15090941ff6565f0d17f94ba8d02.tar.gz |
Clean up a number of unused variable warnings when building w/o
asserts. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core/MemoryManager.cpp')
-rw-r--r-- | lib/Core/MemoryManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Core/MemoryManager.cpp b/lib/Core/MemoryManager.cpp index cec7b7d1..72c1b67f 100644 --- a/lib/Core/MemoryManager.cpp +++ b/lib/Core/MemoryManager.cpp @@ -50,12 +50,14 @@ MemoryObject *MemoryManager::allocate(uint64_t size, bool isLocal, bool isGlobal MemoryObject *MemoryManager::allocateFixed(uint64_t address, uint64_t size, const llvm::Value *allocSite) { +#ifndef NDEBUG for (objects_ty::iterator it = objects.begin(), ie = objects.end(); it != ie; ++it) { MemoryObject *mo = *it; assert(!(address+size > mo->address && address < mo->address+mo->size) && "allocated an overlapping object"); } +#endif ++stats::allocations; MemoryObject *res = new MemoryObject(address, size, false, true, true, |