]> granicus.if.org Git - clang/commitdiff
CodeGen: Update for LLVM API change
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 20 Oct 2014 06:13:36 +0000 (06:13 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 20 Oct 2014 06:13:36 +0000 (06:13 +0000)
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

lib/CodeGen/TargetInfo.cpp

index f78c2d04073191d645851c55c7aeb83d25e7657b..55ff63300d709d976f84c1025d0b6488702694a4 100644 (file)
@@ -2295,7 +2295,7 @@ GetX86_64ByValArgumentPair(llvm::Type *Lo, llvm::Type *Hi,
   // 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