about summary refs log tree commit diff homepage
path: root/lib/Support/TreeStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/TreeStream.cpp')
-rw-r--r--lib/Support/TreeStream.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Support/TreeStream.cpp b/lib/Support/TreeStream.cpp
index a0e1596f..8681245b 100644
--- a/lib/Support/TreeStream.cpp
+++ b/lib/Support/TreeStream.cpp
@@ -40,8 +40,7 @@ TreeStreamWriter::TreeStreamWriter(const std::string &_path)
 
 TreeStreamWriter::~TreeStreamWriter() {
   flush();
-  if (output)
-    delete output;
+  delete output;
 }
 
 bool TreeStreamWriter::good() {