diff options
| author | Duncan Sands <baldrick@free.fr> | 2009-09-06 10:53:22 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2009-09-06 10:53:22 +0000 |
| commit | 44d423ac93bda643d271c7767a369db6d0aa281d (patch) | |
| tree | 7404bc090b7a0eebd1ff76a063f8eaa678a512c6 /llvm/lib/System/Mutex.cpp | |
| parent | 63951ada319348066ecbbaeebbdf9082b1df74fe (diff) | |
| download | bcm5719-llvm-44d423ac93bda643d271c7767a369db6d0aa281d.tar.gz bcm5719-llvm-44d423ac93bda643d271c7767a369db6d0aa281d.zip | |
Tweak code into an equivalent form for which icc
doesn't warn about unreachable instructions. Patch
by Erick Tryzelaar (#111).
llvm-svn: 81110
Diffstat (limited to 'llvm/lib/System/Mutex.cpp')
| -rw-r--r-- | llvm/lib/System/Mutex.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/System/Mutex.cpp b/llvm/lib/System/Mutex.cpp index a5e9920ae3f..8ccd6e52c4d 100644 --- a/llvm/lib/System/Mutex.cpp +++ b/llvm/lib/System/Mutex.cpp @@ -115,8 +115,7 @@ MutexImpl::acquire() int errorcode = pthread_mutex_lock(mutex); return errorcode == 0; - } - return false; + } else return false; } bool @@ -129,8 +128,7 @@ MutexImpl::release() int errorcode = pthread_mutex_unlock(mutex); return errorcode == 0; - } - return false; + } else return false; } bool @@ -143,8 +141,7 @@ MutexImpl::tryacquire() int errorcode = pthread_mutex_trylock(mutex); return errorcode == 0; - } - return false; + } else return false; } } |

