aboutsummaryrefslogtreecommitdiff
path: root/Driver/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-17 07:07:01 +0000
committerChris Lattner <sabre@nondot.org>2008-08-17 07:07:01 +0000
commit76b3a72f783ccaa5dfeea0a9f0457e5e37a2d478 (patch)
treeab4c97893c8ee28ec5a9f68ec4c33345306326fd /Driver/PrintPreprocessedOutput.cpp
parent202e9ac1b17de41914a92ae064f2e6dc445a0b0f (diff)
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
Diffstat (limited to 'Driver/PrintPreprocessedOutput.cpp')
-rw-r--r--Driver/PrintPreprocessedOutput.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Driver/PrintPreprocessedOutput.cpp b/Driver/PrintPreprocessedOutput.cpp
index 28309860ca..2a363f8ee1 100644
--- a/Driver/PrintPreprocessedOutput.cpp
+++ b/Driver/PrintPreprocessedOutput.cpp
@@ -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())