summaryrefslogtreecommitdiff
path: root/unittests/ExecutionEngine
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-08-19 23:35:33 +0000
committerHans Wennborg <hans@hanshq.net>2014-08-19 23:35:33 +0000
commit06de8a10d2e596c5aae94d60466532773105cc6b (patch)
tree479aac07251e3716d5af417017eb6c1fb3dc4ca1 /unittests/ExecutionEngine
parentae9a7964ef6fc98298f945ca370a63f4a3588477 (diff)
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
Diffstat (limited to 'unittests/ExecutionEngine')
-rw-r--r--unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp b/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp
index 296838de61b..0a6a38cef08 100644
--- a/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp
+++ b/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);