diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-04-14 04:46:30 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-04-14 04:46:30 +0000 |
commit | e20c45d2d8d9c3ddf909babbd1013128685b70d2 (patch) | |
tree | 460f5ed028413c196cbbd2bbdec7fa240c3af4ba /include/llvm/Support/Allocator.h | |
parent | cb7ead25c29b8897435e466d785ec766adc7afe5 (diff) | |
download | llvm-e20c45d2d8d9c3ddf909babbd1013128685b70d2.tar.gz llvm-e20c45d2d8d9c3ddf909babbd1013128685b70d2.tar.bz2 llvm-e20c45d2d8d9c3ddf909babbd1013128685b70d2.tar.xz |
Fix the compile from r206147 in release builds by moving a variable
declaration outside of #ifndef NDEBUG -- its used elsewhere. Sorry for
the noise.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Allocator.h')
-rw-r--r-- | include/llvm/Support/Allocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/Allocator.h b/include/llvm/Support/Allocator.h index 08878aef78..9e567e567a 100644 --- a/include/llvm/Support/Allocator.h +++ b/include/llvm/Support/Allocator.h @@ -285,8 +285,8 @@ private: void DeallocateCustomSizedSlabs() { for (auto &PtrAndSize : CustomSizedSlabs) { void *Ptr = PtrAndSize.first; -#ifndef NDEBUG size_t Size = PtrAndSize.second; +#ifndef NDEBUG // Poison the memory so stale pointers crash sooner. Note we must // preserve the Size and NextPtr fields at the beginning. sys::Memory::setRangeWritable(Ptr, Size); |