summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2009-01-18 19:57:27 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2009-01-18 19:57:27 +0000
commit9018ca711a4c61a031fcaddcb71492dda0bc221e (patch)
tree318dd04f831841755cc2ca7d512e0e77d082bf8e /clang/lib/AST/Decl.cpp
parentffbcf96d1cf83e943c6069c3d75a72be4940d401 (diff)
downloadbcm5719-llvm-9018ca711a4c61a031fcaddcb71492dda0bc221e.tar.gz
bcm5719-llvm-9018ca711a4c61a031fcaddcb71492dda0bc221e.zip
fix deallocation of FunctionDecl::ParamInfo
llvm-svn: 62469
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 8ae93110170..5ec6aff4f57 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -224,17 +224,15 @@ VarDecl::~VarDecl() {
// FunctionDecl Implementation
//===----------------------------------------------------------------------===//
-FunctionDecl::~FunctionDecl() {
- delete[] ParamInfo;
-}
-
void FunctionDecl::Destroy(ASTContext& C) {
if (Body)
Body->Destroy(C);
for (param_iterator I=param_begin(), E=param_end(); I!=E; ++I)
(*I)->Destroy(C);
-
+
+ C.getAllocator().Deallocate(ParamInfo);
+
Decl::Destroy(C);
}
OpenPOWER on IntegriCloud