[cfe-commits] r49135 - /cfe/trunk/lib/AST/Decl.cpp

Sam Bishop sam at bishop.dhs.org
Wed Apr 2 22:01:04 PDT 2008


Author: sbishop
Date: Thu Apr  3 00:01:04 2008
New Revision: 49135

URL: http://llvm.org/viewvc/llvm-project?rev=49135&view=rev
Log:
Call "delete" on the body of FunctionDecls.

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

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

==============================================================================
--- cfe/trunk/lib/AST/Decl.cpp (original)
+++ cfe/trunk/lib/AST/Decl.cpp Thu Apr  3 00:01:04 2008
@@ -357,6 +357,7 @@
 
 FunctionDecl::~FunctionDecl() {
   delete[] ParamInfo;
+  delete Body;
 }
 
 unsigned FunctionDecl::getNumParams() const {





More information about the cfe-commits mailing list