Callers of DataLayout::RoundUpAlignment should switch to
RoundUpToAlignment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220188
91177308-0d34-0410-b5e6-
96231b3b80d8
// the second element at offset 8. Check for this:
unsigned LoSize = (unsigned)TD.getTypeAllocSize(Lo);
unsigned HiAlign = TD.getABITypeAlignment(Hi);
- unsigned HiStart = llvm::DataLayout::RoundUpAlignment(LoSize, HiAlign);
+ unsigned HiStart = llvm::RoundUpToAlignment(LoSize, HiAlign);
assert(HiStart != 0 && HiStart <= 8 && "Invalid x86-64 argument pair!");
// To handle this, we have to increase the size of the low part so that the