diff options
| author | Michal Gorny <mgorny@gentoo.org> | 2019-02-11 09:18:46 +0000 |
|---|---|---|
| committer | Michal Gorny <mgorny@gentoo.org> | 2019-02-11 09:18:46 +0000 |
| commit | f048d448e0f58ff6b3e5d09cbdc91fc1c97afdc0 (patch) | |
| tree | 79017236b75d195ef2395f285ef8de8dc65706cd /clang/test/clang-rename/ComplexFunctionOverride.cpp | |
| parent | 6e54cda2ac4b0ad803de65863a412f9e24d9d855 (diff) | |
| download | bcm5719-llvm-f048d448e0f58ff6b3e5d09cbdc91fc1c97afdc0.tar.gz bcm5719-llvm-f048d448e0f58ff6b3e5d09cbdc91fc1c97afdc0.zip | |
[lldb] [MainLoop] Initialize empty sigset_t correctly
Fix MainLoop::RunImpl::get_sigmask() to correctly return empty sigset_t
when SIGNAL_POLLING_UNSUPPORTED is true. On NetBSD (and probably
on some other platforms), integers are not implicitly convertible to
sigset_t, so 'return 0' is erraneous. Instead, sigset_t should be reset
through sigemptyset().
While at it, move common parts out of the #ifdef.
Differential Revision: https://reviews.llvm.org/D57959
llvm-svn: 353675
Diffstat (limited to 'clang/test/clang-rename/ComplexFunctionOverride.cpp')
0 files changed, 0 insertions, 0 deletions

