diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-09-18 17:02:42 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-09-18 17:02:42 +0000 |
| commit | 3c6ce06243f90376f46be7c7973f3ec622acdc65 (patch) | |
| tree | ed4f2dfbc4effa5385511d79b3ad0eadfc78e450 /llvm/lib | |
| parent | c36515c32f1871b2ff530aa6ed2010ff872b5de2 (diff) | |
| download | bcm5719-llvm-3c6ce06243f90376f46be7c7973f3ec622acdc65.tar.gz bcm5719-llvm-3c6ce06243f90376f46be7c7973f3ec622acdc65.zip | |
Don't check for null on delete
llvm-svn: 624
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/InstrSelection/InstrForest.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp b/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp index efea63c3f1a..f7091a29c61 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp +++ b/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp @@ -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 |

