IR: Thread OnlyIfReduced through ConstantExpr::getWithOperands()
[oota-llvm.git] / lib / Support / ToolOutputFile.cpp
index 5c1268a40a960ded80356894e31fecfca15169c5..b5fb20f4b20f3b9cf8c0777f0090856540a8b7a4 100644 (file)
@@ -25,10 +25,8 @@ tool_output_file::CleanupInstaller::CleanupInstaller(const char *filename)
 
 tool_output_file::CleanupInstaller::~CleanupInstaller() {
   // Delete the file if the client hasn't told us not to.
-  if (!Keep && Filename != "-") {
-    bool Existed;
-    sys::fs::remove(Filename, Existed);
-  }
+  if (!Keep && Filename != "-")
+    sys::fs::remove(Filename);
 
   // Ok, the file is successfully written and closed, or deleted. There's no
   // further need to clean it up on signals.