OSDN Git Service

BumpPtrAllocator: don't accept 0 for the alignment parameter
authorHans Wennborg <hans@hanshq.net>
Tue, 19 Aug 2014 23:35:33 +0000 (23:35 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 19 Aug 2014 23:35:33 +0000 (23:35 +0000)
commit06de8a10d2e596c5aae94d60466532773105cc6b
tree479aac07251e3716d5af417017eb6c1fb3dc4ca1
parentae9a7964ef6fc98298f945ca370a63f4a3588477
BumpPtrAllocator: don't accept 0 for the alignment parameter

It seems unnecessary to have to use an extra branch to check for this special case.

http://reviews.llvm.org/D4945

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216036 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Allocator.h
unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp
unittests/Support/AllocatorTest.cpp