summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclTemplate.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-10-20 14:27:22 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-10-20 14:27:22 +0000
commitc3f89253ae359c6a6a043da564892399cf058f01 (patch)
treefa0b37b47264282bca722dda4cd297427875721b /clang/lib/AST/DeclTemplate.cpp
parente9f132d3f42b89cf5f4442d207a1b8bef6703af5 (diff)
downloadbcm5719-llvm-c3f89253ae359c6a6a043da564892399cf058f01.tar.gz
bcm5719-llvm-c3f89253ae359c6a6a043da564892399cf058f01.zip
Retire llvm::alignOf in favor of C++11 alignof.
No functionality change intended. llvm-svn: 284730
Diffstat (limited to 'clang/lib/AST/DeclTemplate.cpp')
-rw-r--r--clang/lib/AST/DeclTemplate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclTemplate.cpp b/clang/lib/AST/DeclTemplate.cpp
index bcc8878eeae..7b5394f4598 100644
--- a/clang/lib/AST/DeclTemplate.cpp
+++ b/clang/lib/AST/DeclTemplate.cpp
@@ -66,7 +66,7 @@ TemplateParameterList::Create(const ASTContext &C, SourceLocation TemplateLoc,
SourceLocation RAngleLoc, Expr *RequiresClause) {
void *Mem = C.Allocate(totalSizeToAlloc<NamedDecl *, Expr *>(
Params.size(), RequiresClause ? 1u : 0u),
- llvm::alignOf<TemplateParameterList>());
+ alignof(TemplateParameterList));
return new (Mem) TemplateParameterList(TemplateLoc, LAngleLoc, Params,
RAngleLoc, RequiresClause);
}
OpenPOWER on IntegriCloud