diff options
author | Mark Doffman <mark.doffman@codethink.co.uk> | 2015-01-01 22:39:21 +0000 |
---|---|---|
committer | Mark Doffman <mark.doffman@codethink.co.uk> | 2015-01-01 22:39:21 +0000 |
commit | 8dbfe1d20de28d538db690dbfac359651c56788c (patch) | |
tree | d9ff1b5fff1f7d59c254d978f11d728c6c7fd5cb | |
parent | ac9b1537ae50fbc2021ac8920259013669909c23 (diff) | |
download | flang-8dbfe1d20de28d538db690dbfac359651c56788c.tar.gz |
Fix error in error reporting for output files in compiler driver.
-rw-r--r-- | tools/driver/Main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/driver/Main.cpp b/tools/driver/Main.cpp index 327b22de5e..5031daf2cc 100644 --- a/tools/driver/Main.cpp +++ b/tools/driver/Main.cpp @@ -264,7 +264,7 @@ static bool EmitOutputFile(const std::string &Input, BackendAction Action) { std::error_code err; llvm::raw_fd_ostream Out(Input.c_str(), err, llvm::sys::fs::F_None); - if (!err){ + if (err){ llvm::errs() << "Could not open output file '" << Input << "': " << err.message() <<"\n"; return true; |