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 | 6751e2586de3bbaf717891ed8b1f2e4f9392faa5 (patch) | |
| tree | d9d01e48a5e61d7e468ba66a47b92755648482a3 | |
| parent | f5babf97ff165368c303fd01cd1b5d1531f7f9ff (diff) | |
| download | bcm5719-llvm-6751e2586de3bbaf717891ed8b1f2e4f9392faa5.tar.gz bcm5719-llvm-6751e2586de3bbaf717891ed8b1f2e4f9392faa5.zip | |
Fix the compile from r206147 in release builds by moving a variable
declaration outside of #ifndef NDEBUG -- its used elsewhere. Sorry for
the noise.
llvm-svn: 206148
| -rw-r--r-- | llvm/include/llvm/Support/Allocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Allocator.h b/llvm/include/llvm/Support/Allocator.h index 08878aef787..9e567e567af 100644 --- a/llvm/include/llvm/Support/Allocator.h +++ b/llvm/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); |

