Don't check for null on delete

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-09-18 17:02:42 +00:00
parent bb036be620
commit 921b5e1471
2 changed files with 2 additions and 10 deletions

View File

@ -182,11 +182,7 @@ InstrForest::~InstrForest()
{
for (hash_map<const Instruction*, InstructionNode*>:: iterator I = begin();
I != end(); ++I)
{
InstructionNode* node = (*I).second;
if (node)
delete node;
}
delete (*I).second;
}
void

View File

@ -182,11 +182,7 @@ InstrForest::~InstrForest()
{
for (hash_map<const Instruction*, InstructionNode*>:: iterator I = begin();
I != end(); ++I)
{
InstructionNode* node = (*I).second;
if (node)
delete node;
}
delete (*I).second;
}
void