From: David Majnemer Date: Mon, 20 Oct 2014 06:13:36 +0000 (+0000) Subject: CodeGen: Update for LLVM API change X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ad68546e1417de13b12eecff7b7f40686e6aa60;p=clang CodeGen: Update for LLVM API change 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 --- diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index f78c2d0407..55ff63300d 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -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