diff options
| author | Hans Wennborg <hans@hanshq.net> | 2014-08-19 23:35:33 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2014-08-19 23:35:33 +0000 |
| commit | fd1f0f17c56dfab3b44510759c32fb87980bbcf5 (patch) | |
| tree | 7e64389d60795bf21b2a46db57da73d8bd20fb20 /llvm/unittests/ExecutionEngine | |
| parent | e5c1e31d2c4c81249bb18450dd3a7462b5db43d8 (diff) | |
| download | bcm5719-llvm-fd1f0f17c56dfab3b44510759c32fb87980bbcf5.tar.gz bcm5719-llvm-fd1f0f17c56dfab3b44510759c32fb87980bbcf5.zip | |
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
llvm-svn: 216036
Diffstat (limited to 'llvm/unittests/ExecutionEngine')
| -rw-r--r-- | llvm/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp b/llvm/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp index 296838de61b..0a6a38cef08 100644 --- a/llvm/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp +++ b/llvm/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp @@ -158,7 +158,7 @@ TEST(JITMemoryManagerTest, TestCodeAllocation) { TEST(JITMemoryManagerTest, TestSmallGlobalInts) { std::unique_ptr<JITMemoryManager> MemMgr( JITMemoryManager::CreateDefaultMemManager()); - uint8_t *a = (uint8_t *)MemMgr->allocateGlobal(8, 0); + uint8_t *a = (uint8_t *)MemMgr->allocateGlobal(8, 1); uint16_t *b = (uint16_t*)MemMgr->allocateGlobal(16, 2); uint32_t *c = (uint32_t*)MemMgr->allocateGlobal(32, 4); uint64_t *d = (uint64_t*)MemMgr->allocateGlobal(64, 8); |

