mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
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:
parent
bb036be620
commit
921b5e1471
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user