don't delete a variable on the stack

llvm-svn: 54871
This commit is contained in:
Chris Lattner 2008-08-17 07:07:01 +00:00
parent 9458d53e49
commit b52817bff0
1 changed files with 2 additions and 2 deletions

View File

@ -565,8 +565,8 @@ void clang::DoPrintPreprocessedInput(Preprocessor &PP,
}
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())