summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-10-20 06:13:33 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-10-20 06:13:33 +0000
commitf3cadce84c5a5630a8d796f5234153eea0e8871f (patch)
tree826c6900740e5124a3b7de8bb584df2d52c1e12d /llvm/lib/ExecutionEngine/ExecutionEngine.cpp
parent6665d62117729d7cfb99dc621d6bb2c77f5861ec (diff)
downloadbcm5719-llvm-f3cadce84c5a5630a8d796f5234153eea0e8871f.tar.gz
bcm5719-llvm-f3cadce84c5a5630a8d796f5234153eea0e8871f.zip
IR: Replace DataLayout::RoundUpAlignment with RoundUpToAlignment
No functional change intended, just cleaning up some code. llvm-svn: 220187
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index bb7377d855a..5a6d65624be 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -91,8 +91,8 @@ public:
Type *ElTy = GV->getType()->getElementType();
size_t GVSize = (size_t)TD.getTypeAllocSize(ElTy);
void *RawMemory = ::operator new(
- DataLayout::RoundUpAlignment(sizeof(GVMemoryBlock),
- TD.getPreferredAlignment(GV))
+ RoundUpToAlignment(sizeof(GVMemoryBlock),
+ TD.getPreferredAlignment(GV))
+ GVSize);
new(RawMemory) GVMemoryBlock(GV);
return static_cast<char*>(RawMemory) + sizeof(GVMemoryBlock);
OpenPOWER on IntegriCloud