summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/posix/PipePosix.cpp
diff options
context:
space:
mode:
authorOleksiy Vyalov <ovyalov@google.com>2014-12-19 23:52:46 +0000
committerOleksiy Vyalov <ovyalov@google.com>2014-12-19 23:52:46 +0000
commitec8f582aec943c375c4a3babad6478ea79cd592a (patch)
tree4baae518eac0c09e5d14565f3731b93e33c617c3 /lldb/source/Host/posix/PipePosix.cpp
parente497438c9c4eb0b01f09abda27731bcfaccf1996 (diff)
downloadbcm5719-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.cpp3
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)
{
OpenPOWER on IntegriCloud