commit | 921b5e14715f241b5050dfbe063621ded1344893 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Sep 18 17:02:42 2001 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Sep 18 17:02:42 2001 +0000 |
tree | b97e106bb9ee28ff8e9eb92541700644cf1104cc | |
parent | bb036be62020d9828f29930c83fca48000788493 [diff] [blame] |
Don't check for null on delete git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@624 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/InstrSelection/InstrForest.cpp b/lib/CodeGen/InstrSelection/InstrForest.cpp index efea63c..f7091a2 100644 --- a/lib/CodeGen/InstrSelection/InstrForest.cpp +++ b/lib/CodeGen/InstrSelection/InstrForest.cpp
@@ -182,11 +182,7 @@ { for (hash_map<const Instruction*, InstructionNode*>:: iterator I = begin(); I != end(); ++I) - { - InstructionNode* node = (*I).second; - if (node) - delete node; - } + delete (*I).second; } void