aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/InstrSelection/InstrForest.cpp
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
commit921b5e14715f241b5050dfbe063621ded1344893 (patch)
treeb97e106bb9ee28ff8e9eb92541700644cf1104cc /lib/CodeGen/InstrSelection/InstrForest.cpp
parentbb036be62020d9828f29930c83fca48000788493 (diff)
Don't check for null on delete
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InstrSelection/InstrForest.cpp')
-rw-r--r--lib/CodeGen/InstrSelection/InstrForest.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/InstrSelection/InstrForest.cpp b/lib/CodeGen/InstrSelection/InstrForest.cpp
index efea63c3f1..f7091a29c6 100644
--- a/lib/CodeGen/InstrSelection/InstrForest.cpp
+++ b/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