summaryrefslogtreecommitdiffstats
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
commitd36e55224547edddcbf80aea50542c354dc22811 (patch)
treeb5ef53d882f4701e4287e628de180682b25bda2e
parent160e8abd77c4206387a205a46f854ed2f2cc9e0d (diff)
downloadbcm5719-llvm-d36e55224547edddcbf80aea50542c354dc22811.tar.gz
bcm5719-llvm-d36e55224547edddcbf80aea50542c354dc22811.zip
Fix incorrect release of Decl* array referenced by DeclGroup.
Patch by Timo Sirainen! llvm-svn: 57772
-rw-r--r--clang/lib/AST/DeclGroup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclGroup.cpp b/clang/lib/AST/DeclGroup.cpp
index 5ddcd5954db..62b4077a3fc 100644
--- a/clang/lib/AST/DeclGroup.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud