diff options
author | Rui Ueyama <ruiu@google.com> | 2016-01-14 21:00:27 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-01-14 21:00:27 +0000 |
commit | 83aa97941f75421901c90e7fdb95d45f0f14a3e7 (patch) | |
tree | df328ff43765c82ef7b3fa9e9cb7f63d867dba59 /clang/lib/AST/ASTContext.cpp | |
parent | 489a806965a0e0d599246c688538eb20c5bf58a2 (diff) | |
download | bcm5719-llvm-83aa97941f75421901c90e7fdb95d45f0f14a3e7.tar.gz bcm5719-llvm-83aa97941f75421901c90e7fdb95d45f0f14a3e7.zip |
Update for LLVM function name change.
llvm-svn: 257802
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 64386967b22..e70bf2ffed0 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -1480,7 +1480,7 @@ static getConstantArrayInfoInChars(const ASTContext &Context, unsigned Align = EltInfo.second.getQuantity(); if (!Context.getTargetInfo().getCXXABI().isMicrosoft() || Context.getTargetInfo().getPointerWidth(0) == 64) - Width = llvm::RoundUpToAlignment(Width, Align); + Width = llvm::alignTo(Width, Align); return std::make_pair(CharUnits::fromQuantity(Width), CharUnits::fromQuantity(Align)); } @@ -1564,7 +1564,7 @@ TypeInfo ASTContext::getTypeInfoImpl(const Type *T) const { Align = EltInfo.Align; if (!getTargetInfo().getCXXABI().isMicrosoft() || getTargetInfo().getPointerWidth(0) == 64) - Width = llvm::RoundUpToAlignment(Width, Align); + Width = llvm::alignTo(Width, Align); break; } case Type::ExtVector: @@ -1577,7 +1577,7 @@ TypeInfo ASTContext::getTypeInfoImpl(const Type *T) const { // This happens for non-power-of-2 length vectors. if (Align & (Align-1)) { Align = llvm::NextPowerOf2(Align); - Width = llvm::RoundUpToAlignment(Width, Align); + Width = llvm::alignTo(Width, Align); } // Adjust the alignment based on the target max. uint64_t TargetVectorAlign = Target->getMaxVectorAlign(); |