summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Bishop <sam@bishop.dhs.org>2008-04-03 05:01:04 +0000
committerSam Bishop <sam@bishop.dhs.org>2008-04-03 05:01:04 +0000
commitca6226628ed48e81932d16634ad98a1a5b4ce744 (patch)
treea469fcee0e396260b43137c474349523495ac67e
parent4e9cc3f272dc0e75642a9720440614d35016c522 (diff)
downloadbcm5719-llvm-ca6226628ed48e81932d16634ad98a1a5b4ce744.tar.gz
bcm5719-llvm-ca6226628ed48e81932d16634ad98a1a5b4ce744.zip
Call "delete" on the body of FunctionDecls.
llvm-svn: 49135
-rw-r--r--clang/lib/AST/Decl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 4c8f6b86b7c..3e7d83826eb 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -357,6 +357,7 @@ bool ScopedDecl::isDefinedOutsideFunctionOrMethod() const {
FunctionDecl::~FunctionDecl() {
delete[] ParamInfo;
+ delete Body;
}
unsigned FunctionDecl::getNumParams() const {
OpenPOWER on IntegriCloud