[cfe-commits] r57772 - /cfe/trunk/lib/AST/DeclGroup.cpp

Ted Kremenek kremenek at apple.com
Sat Oct 18 12:20:55 PDT 2008


Author: kremenek
Date: Sat Oct 18 14:20:54 2008
New Revision: 57772

URL: http://llvm.org/viewvc/llvm-project?rev=57772&view=rev
Log:
Fix incorrect release of Decl* array referenced by DeclGroup.

Patch by Timo Sirainen!

Modified:
    cfe/trunk/lib/AST/DeclGroup.cpp

Modified: cfe/trunk/lib/AST/DeclGroup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclGroup.cpp?rev=57772&r1=57771&r2=57772&view=diff

==============================================================================
--- cfe/trunk/lib/AST/DeclGroup.cpp (original)
+++ cfe/trunk/lib/AST/DeclGroup.cpp Sat Oct 18 14:20:54 2008
@@ -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);





More information about the cfe-commits mailing list