From 83aa97941f75421901c90e7fdb95d45f0f14a3e7 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 14 Jan 2016 21:00:27 +0000 Subject: Update for LLVM function name change. llvm-svn: 257802 --- clang/lib/AST/Stmt.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'clang/lib/AST/Stmt.cpp') diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index ca63d8486d8..7dfa3a9df13 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/lib/AST/Stmt.cpp @@ -987,8 +987,7 @@ CapturedStmt::Capture *CapturedStmt::getStoredCaptures() const { unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); // Offset of the first Capture object. - unsigned FirstCaptureOffset = - llvm::RoundUpToAlignment(Size, llvm::alignOf()); + unsigned FirstCaptureOffset = llvm::alignTo(Size, llvm::alignOf()); return reinterpret_cast( reinterpret_cast(const_cast(this)) @@ -1045,7 +1044,7 @@ CapturedStmt *CapturedStmt::Create(const ASTContext &Context, Stmt *S, unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (Captures.size() + 1); if (!Captures.empty()) { // Realign for the following Capture array. - Size = llvm::RoundUpToAlignment(Size, llvm::alignOf()); + Size = llvm::alignTo(Size, llvm::alignOf()); Size += sizeof(Capture) * Captures.size(); } @@ -1058,7 +1057,7 @@ CapturedStmt *CapturedStmt::CreateDeserialized(const ASTContext &Context, unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (NumCaptures + 1); if (NumCaptures > 0) { // Realign for the following Capture array. - Size = llvm::RoundUpToAlignment(Size, llvm::alignOf()); + Size = llvm::alignTo(Size, llvm::alignOf()); Size += sizeof(Capture) * NumCaptures; } -- cgit v1.2.3