Index: lldb/source/Host/common/MainLoop.cpp =================================================================== --- lldb/source/Host/common/MainLoop.cpp +++ lldb/source/Host/common/MainLoop.cpp @@ -137,18 +137,18 @@ } sigset_t MainLoop::RunImpl::get_sigmask() { + sigset_t sigmask; #if SIGNAL_POLLING_UNSUPPORTED - return 0; + sigemptyset(&sigmask); #else - sigset_t sigmask; int ret = pthread_sigmask(SIG_SETMASK, nullptr, &sigmask); assert(ret == 0); (void) ret; for (const auto &sig : loop.m_signals) sigdelset(&sigmask, sig.first); - return sigmask; #endif + return sigmask; } #ifdef __ANDROID__