mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
IR: Replace DataLayout::RoundUpAlignment with RoundUpToAlignment
No functional change intended, just cleaning up some code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220187 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user