Don't check for null on delete
llvm-svn: 624
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp b/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp
index efea63c..f7091a2 100644
--- a/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp
+++ b/llvm/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