aboutsummaryrefslogtreecommitdiff
path: root/Driver/SerializationTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Driver/SerializationTest.cpp')
-rw-r--r--Driver/SerializationTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Driver/SerializationTest.cpp b/Driver/SerializationTest.cpp
index 9f93479912..e489a19ff8 100644
--- a/Driver/SerializationTest.cpp
+++ b/Driver/SerializationTest.cpp
@@ -65,7 +65,7 @@ bool SerializationTest::Serialize(llvm::sys::Path& Filename,
{
// Pretty-print the decls to a temp file.
std::string Err;
- llvm::raw_fd_ostream DeclPP(FNameDeclPrint.c_str(), Err);
+ llvm::raw_fd_ostream DeclPP(FNameDeclPrint.c_str(), true, Err);
assert (Err.empty() && "Could not open file for printing out decls.");
llvm::OwningPtr<ASTConsumer> FilePrinter(CreateASTPrinter(&DeclPP));
@@ -89,7 +89,7 @@ bool SerializationTest::Deserialize(llvm::sys::Path& Filename,
{
// Pretty-print the deserialized decls to a temp file.
std::string Err;
- llvm::raw_fd_ostream DeclPP(FNameDeclPrint.c_str(), Err);
+ llvm::raw_fd_ostream DeclPP(FNameDeclPrint.c_str(), true, Err);
assert (Err.empty() && "Could not open file for printing out decls.");
llvm::OwningPtr<ASTConsumer> FilePrinter(CreateASTPrinter(&DeclPP));