summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Doffman <mark.doffman@codethink.co.uk>2015-01-01 22:39:21 +0000
committerMark Doffman <mark.doffman@codethink.co.uk>2015-01-01 22:39:21 +0000
commit8dbfe1d20de28d538db690dbfac359651c56788c (patch)
treed9ff1b5fff1f7d59c254d978f11d728c6c7fd5cb
parentac9b1537ae50fbc2021ac8920259013669909c23 (diff)
downloadflang-8dbfe1d20de28d538db690dbfac359651c56788c.tar.gz
Fix error in error reporting for output files in compiler driver.
-rw-r--r--tools/driver/Main.cpp2
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;