diff options
Diffstat (limited to 'lib/Support/DataStream.cpp')
-rw-r--r-- | lib/Support/DataStream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/DataStream.cpp b/lib/Support/DataStream.cpp index 0e8a717b51..94d14a5e36 100644 --- a/lib/Support/DataStream.cpp +++ b/lib/Support/DataStream.cpp @@ -67,7 +67,7 @@ public: if (Filename == "-") { Fd = 0; sys::Program::ChangeStdinToBinary(); - return error_code(); + return error_code::success(); } int OpenFlags = O_RDONLY; @@ -77,7 +77,7 @@ public: Fd = ::open(Filename.c_str(), OpenFlags); if (Fd == -1) return error_code(errno, posix_category()); - return error_code(); + return error_code::success(); } }; |