]> granicus.if.org Git - llvm/commitdiff
Remove unnecessary code.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 22 Nov 2017 20:02:57 +0000 (20:02 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 22 Nov 2017 20:02:57 +0000 (20:02 +0000)
There is already an RAII in place to discard the temporary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318868 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/OptimizerDriver.cpp

index 6e0b086d48e71bad4bf2eade33831615b1664b3d..841982c6ebbfe9cd31b44ad00cbb0de1eb4d6f40 100644 (file)
@@ -252,9 +252,6 @@ bool BugDriver::runPasses(Module *Program,
   if (DeleteOutput || result != 0)
     sys::fs::remove(OutputFilename);
 
-  // Remove the temporary input file as well
-  consumeError(Temp->discard());
-
   if (!Quiet) {
     if (result == 0)
       outs() << "Success!\n";