diff options
Diffstat (limited to 'lib/Frontend/FixItRewriter.cpp')
-rw-r--r-- | lib/Frontend/FixItRewriter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Frontend/FixItRewriter.cpp b/lib/Frontend/FixItRewriter.cpp index 98e2503d59..ba58df5d83 100644 --- a/lib/Frontend/FixItRewriter.cpp +++ b/lib/Frontend/FixItRewriter.cpp @@ -46,8 +46,7 @@ bool FixItRewriter::WriteFixedFile(const std::string &InFileName, if (!OutFileName.empty()) { std::string Err; OutFile = new llvm::raw_fd_ostream(OutFileName.c_str(), Err, - llvm::raw_fd_ostream::F_Binary | - llvm::raw_fd_ostream::F_Force); + llvm::raw_fd_ostream::F_Binary); OwnedStream.reset(OutFile); } else if (InFileName == "-") { OutFile = &llvm::outs(); @@ -58,8 +57,7 @@ bool FixItRewriter::WriteFixedFile(const std::string &InFileName, Path.appendSuffix("fixit." + Suffix); std::string Err; OutFile = new llvm::raw_fd_ostream(Path.c_str(), Err, - llvm::raw_fd_ostream::F_Binary | - llvm::raw_fd_ostream::F_Force); + llvm::raw_fd_ostream::F_Binary); OwnedStream.reset(OutFile); } |