diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-10-18 19:20:54 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-10-18 19:20:54 +0000 |
commit | 990601b6e90c96630eb26d8b683f26b06105c322 (patch) | |
tree | 53f67dbd6d5bc305d651ca74f18e973c4ebf58d5 /lib/AST/DeclGroup.cpp | |
parent | 2284ac9ec80299fcdefae9a2787cf85105a0f203 (diff) |
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
Diffstat (limited to 'lib/AST/DeclGroup.cpp')
-rw-r--r-- | lib/AST/DeclGroup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/DeclGroup.cpp b/lib/AST/DeclGroup.cpp index 5ddcd5954d..62b4077a3f 100644 --- a/lib/AST/DeclGroup.cpp +++ b/lib/AST/DeclGroup.cpp @@ -54,7 +54,7 @@ DeclGroup::DeclGroup(unsigned numdecls, Decl** decls) : NumDecls(numdecls) { } 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); |