aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclGroup.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-10-18 19:20:54 +0000
committerTed Kremenek <kremenek@apple.com>2008-10-18 19:20:54 +0000
commit990601b6e90c96630eb26d8b683f26b06105c322 (patch)
tree53f67dbd6d5bc305d651ca74f18e973c4ebf58d5 /lib/AST/DeclGroup.cpp
parent2284ac9ec80299fcdefae9a2787cf85105a0f203 (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.cpp2
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);