Don't check for null on delete

llvm-svn: 624
This commit is contained in:
Chris Lattner 2001-09-18 17:02:42 +00:00
parent c36515c32f
commit 3c6ce06243
1 changed files with 1 additions and 5 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