summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-18 17:02:42 +0000
committerChris Lattner <sabre@nondot.org>2001-09-18 17:02:42 +0000
commit3c6ce06243f90376f46be7c7973f3ec622acdc65 (patch)
treeed4f2dfbc4effa5385511d79b3ad0eadfc78e450 /llvm/lib
parentc36515c32f1871b2ff530aa6ed2010ff872b5de2 (diff)
downloadbcm5719-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.cpp6
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
OpenPOWER on IntegriCloud