diff options
Diffstat (limited to 'llvm/lib/Support/DataStream.cpp')
-rw-r--r-- | llvm/lib/Support/DataStream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/DataStream.cpp b/llvm/lib/Support/DataStream.cpp index 0e8a717..94d14a5 100644 --- a/llvm/lib/Support/DataStream.cpp +++ b/llvm/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(); } }; |