diff options
author | Oleksiy Vyalov <ovyalov@google.com> | 2014-12-19 23:52:46 +0000 |
---|---|---|
committer | Oleksiy Vyalov <ovyalov@google.com> | 2014-12-19 23:52:46 +0000 |
commit | ec8f582aec943c375c4a3babad6478ea79cd592a (patch) | |
tree | 4baae518eac0c09e5d14565f3731b93e33c617c3 /lldb/source/Host/posix/PipePosix.cpp | |
parent | e497438c9c4eb0b01f09abda27731bcfaccf1996 (diff) | |
download | bcm5719-llvm-ec8f582aec943c375c4a3babad6478ea79cd592a.tar.gz bcm5719-llvm-ec8f582aec943c375c4a3babad6478ea79cd592a.zip |
No need to call SetErrorToErrno when pipe2 succeeds.
http://reviews.llvm.org/D6743
llvm-svn: 224652
Diffstat (limited to 'lldb/source/Host/posix/PipePosix.cpp')
-rw-r--r-- | lldb/source/Host/posix/PipePosix.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lldb/source/Host/posix/PipePosix.cpp b/lldb/source/Host/posix/PipePosix.cpp index 1dbba96b9b1..414fcc68edb 100644 --- a/lldb/source/Host/posix/PipePosix.cpp +++ b/lldb/source/Host/posix/PipePosix.cpp @@ -67,10 +67,7 @@ PipePosix::CreateNew(bool child_processes_inherit) #if PIPE2_SUPPORTED if (::pipe2(m_fds, (child_processes_inherit) ? 0 : O_CLOEXEC) == 0) - { - error.SetErrorToErrno(); return error; - } #else if (::pipe(m_fds) == 0) { |