diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-17 04:58:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-17 04:58:59 +0000 |
commit | 0981b62eec9286aedeac61a5ab227f9acfaeefb7 (patch) | |
tree | 11c0f62d14fd86b32d86a0f75c9cd358808fe1b2 /lib/VMCore/Function.cpp | |
parent | 0c448e58d346201d91767ee27423931101132c9d (diff) |
Change the semancics of the dropallrefs method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8572 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 74098ffc45..836c6b64a3 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -104,8 +104,6 @@ Function::Function(const FunctionType *Ty, LinkageTypes Linkage, Function::~Function() { dropAllReferences(); // After this it is safe to delete instructions. - BasicBlocks.clear(); // Delete all basic blocks... - // Delete all of the method arguments and unlink from symbol table... ArgumentList.clear(); ArgumentList.setParent(0); @@ -149,6 +147,7 @@ const Type *Function::getReturnType() const { void Function::dropAllReferences() { for (iterator I = begin(), E = end(); I != E; ++I) I->dropAllReferences(); + BasicBlocks.clear(); // Delete all basic blocks... } /// getIntrinsicID - This method returns the ID number of the specified |