commit | cb7f1801071a05532e5366c7cd7468ca449a9732 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Aug 17 07:07:01 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Aug 17 07:07:01 2008 +0000 |
tree | ab4c97893c8ee28ec5a9f68ec4c33345306326fd | |
parent | 1be9690ca46ee03cef5b197a476bcfed3cfba735 [diff] [blame] |
don't delete a variable on the stack git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54871 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/PrintPreprocessedOutput.cpp b/Driver/PrintPreprocessedOutput.cpp index 2830986..2a363f8 100644 --- a/Driver/PrintPreprocessedOutput.cpp +++ b/Driver/PrintPreprocessedOutput.cpp
@@ -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())