Correct syntax mistake hidden in assert(3)

wait_status cannot be compared with WaitStatus::Stop,
go for wait_status.type.

llvm-svn: 305794
This commit is contained in:
Kamil Rytarowski 2017-06-20 13:51:06 +00:00
parent 4ccbd58d70
commit 4bb744156b
1 changed files with 1 additions and 1 deletions

View File

@ -845,7 +845,7 @@ void NativeProcessNetBSD::SigchldHandler() {
if (exited) if (exited)
MonitorExited(wait_pid, wait_status); MonitorExited(wait_pid, wait_status);
else { else {
assert(wait_status == WaitStatus::Stop); assert(wait_status.type == WaitStatus::Stop);
MonitorCallback(wait_pid, wait_status.status); MonitorCallback(wait_pid, wait_status.status);
} }
} }