diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-02-18 00:47:07 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-02-18 00:47:07 +0000 |
commit | 4f3f9c7ba9e61c0d75e96fb8d93f8d9796a73d12 (patch) | |
tree | 116a6de4cc6bbcc53d639910ea710e043ce02efb /llvm/lib/Support/Mutex.cpp | |
parent | 73e203e3d300dd4f99fe391fa11e00946f818d88 (diff) | |
download | bcm5719-llvm-4f3f9c7ba9e61c0d75e96fb8d93f8d9796a73d12.tar.gz bcm5719-llvm-4f3f9c7ba9e61c0d75e96fb8d93f8d9796a73d12.zip |
Check the errorcode.
llvm-svn: 125804
Diffstat (limited to 'llvm/lib/Support/Mutex.cpp')
-rw-r--r-- | llvm/lib/Support/Mutex.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Mutex.cpp b/llvm/lib/Support/Mutex.cpp index 488868febe4..b408973bbad 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 |