diff options
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/AST/DeclGroup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclGroup.cpp b/clang/lib/AST/DeclGroup.cpp index 10c39283a61..6ec0e5beafa 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<DeclGroup>::Alignment; - void* mem = C.getAllocator().Allocate(size, alignment); + void* mem = C.getAllocator().Allocate(size, alignment); new (mem) DeclGroup(numdecls, decls); return static_cast<DeclGroup*>(mem); } |