From 4f3f9c7ba9e61c0d75e96fb8d93f8d9796a73d12 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 18 Feb 2011 00:47:07 +0000 Subject: Check the errorcode. llvm-svn: 125804 --- llvm/lib/Support/Mutex.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Support/Mutex.cpp') diff --git a/llvm/lib/Support/Mutex.cpp b/llvm/lib/Support/Mutex.cpp index 488868f..b408973 100644 --- a/llvm/lib/Support/Mutex.cpp +++ b/llvm/lib/Support/Mutex.cpp @@ -78,6 +78,7 @@ MutexImpl::MutexImpl( bool recursive) #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) // Make it a process local mutex errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE); + assert(errorcode == 0); #endif // Initialize the mutex -- cgit v1.1