diff --git a/clang/lib/AST/DeclGroup.cpp b/clang/lib/AST/DeclGroup.cpp index 10c39283a61f..6ec0e5beafa4 100644 --- a/clang/lib/AST/DeclGroup.cpp +++ b/clang/lib/AST/DeclGroup.cpp @@ -21,7 +21,7 @@ using namespace clang; DeclGroup* DeclGroup::Create(ASTContext& C, unsigned numdecls, Decl** decls) { unsigned size = sizeof(DeclGroup) + sizeof(Decl*) * numdecls; unsigned alignment = llvm::AlignOf::Alignment; - void* mem = C.getAllocator().Allocate(size, alignment); + void* mem = C.getAllocator().Allocate(size, alignment); new (mem) DeclGroup(numdecls, decls); return static_cast(mem); }