aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-02-11 09:18:46 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-02-11 09:18:46 +0000
commitf048d448e0f58ff6b3e5d09cbdc91fc1c97afdc0 (patch)
tree79017236b75d195ef2395f285ef8de8dc65706cd /llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
parent6e54cda2ac4b0ad803de65863a412f9e24d9d855 (diff)
downloadllvm-f048d448e0f58ff6b3e5d09cbdc91fc1c97afdc0.zip
llvm-f048d448e0f58ff6b3e5d09cbdc91fc1c97afdc0.tar.gz
llvm-f048d448e0f58ff6b3e5d09cbdc91fc1c97afdc0.tar.bz2
[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 'llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp')
0 files changed, 0 insertions, 0 deletions