[cfe-commits] r54871 - /cfe/trunk/Driver/PrintPreprocessedOutput.cpp

Chris Lattner sabre at nondot.org
Sun Aug 17 00:07:01 PDT 2008


Author: lattner
Date: Sun Aug 17 02:07:01 2008
New Revision: 54871

URL: http://llvm.org/viewvc/llvm-project?rev=54871&view=rev
Log:
don't delete a variable on the stack

Modified:
    cfe/trunk/Driver/PrintPreprocessedOutput.cpp

Modified: cfe/trunk/Driver/PrintPreprocessedOutput.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/PrintPreprocessedOutput.cpp?rev=54871&r1=54870&r2=54871&view=diff

==============================================================================
--- cfe/trunk/Driver/PrintPreprocessedOutput.cpp (original)
+++ cfe/trunk/Driver/PrintPreprocessedOutput.cpp Sun Aug 17 02:07:01 2008
@@ -565,8 +565,8 @@
   }
   OS << '\n';
   
-  // Flush and free the ostream.
-  delete &OS;
+  // Flush the ostream.
+  OS.flush();
   
   // If an error occurred, remove the output file.
   if (PP.getDiagnostics().hasErrorOccurred() && !OutFile.empty())





More information about the cfe-commits mailing list