Fix incorrect release of Decl* array referenced by DeclGroup.
Patch by Timo Sirainen!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57772 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/DeclGroup.cpp b/lib/AST/DeclGroup.cpp
index 5ddcd59..62b4077 100644
--- a/lib/AST/DeclGroup.cpp
+++ b/lib/AST/DeclGroup.cpp
@@ -54,7 +54,7 @@
}
void DeclGroup::Destroy(ASTContext& C) {
- Decl** Decls = (Decl**) this + 1;
+ Decl** Decls = (Decl**) (this + 1);
for (unsigned i = 0; i < NumDecls; ++i)
Decls[i]->Destroy(C);