From d8553f3cec042b5af9e21c268cb14ee8f7b30083 Mon Sep 17 00:00:00 2001 From: Frank Busse Date: Wed, 15 Dec 2021 16:20:29 +0000 Subject: remove LLVM < 6 from sources --- lib/Core/MemoryManager.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/Core/MemoryManager.cpp') diff --git a/lib/Core/MemoryManager.cpp b/lib/Core/MemoryManager.cpp index e3fffd9b..f15c0db9 100644 --- a/lib/Core/MemoryManager.cpp +++ b/lib/Core/MemoryManager.cpp @@ -116,12 +116,7 @@ MemoryObject *MemoryManager::allocate(uint64_t size, bool isLocal, uint64_t address = 0; if (DeterministicAllocation) { -#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 9) address = llvm::alignTo((uint64_t)nextFreeSlot + alignment - 1, alignment); -#else - address = llvm::RoundUpToAlignment((uint64_t)nextFreeSlot + alignment - 1, - alignment); -#endif // Handle the case of 0-sized allocations as 1-byte allocations. // This way, we make sure we have this allocation between its own red zones -- cgit 1.4.1