aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r--lib/AST/Decl.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp
index 8ae9311017..5ec6aff4f5 100644
--- a/lib/AST/Decl.cpp
+++ b/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);
}