diff options
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/CompressionStream.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Support/CompressionStream.cpp b/lib/Support/CompressionStream.cpp index d17e1df1..ff2d290f 100644 --- a/lib/Support/CompressionStream.cpp +++ b/lib/Support/CompressionStream.cpp @@ -28,7 +28,10 @@ compressed_fd_ostream::compressed_fd_ostream(const std::string &Filename, : llvm::raw_ostream(), pos(0) { ErrorInfo = ""; // Open file in binary mode -#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 5) +#if LLVM_VERSION_CODE >= LLVM_VERSION(7, 0) + std::error_code EC = + llvm::sys::fs::openFileForWrite(Filename, FD); +#elif LLVM_VERSION_CODE >= LLVM_VERSION(3, 5) std::error_code EC = llvm::sys::fs::openFileForWrite(Filename, FD, llvm::sys::fs::F_None); #else |