summaryrefslogtreecommitdiffstats
path: root/libcxx/include/mutex
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-12-01 20:21:04 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-12-01 20:21:04 +0000
commitc206366fd7774aff222578c2680b931a4c2c35ba (patch)
tree754a1c9a558a9c1e4e1774aec8ac5268ba3d2afe /libcxx/include/mutex
parentab0ad4ed1eea577056d76a4b76734dae881955d3 (diff)
downloadbcm5719-llvm-c206366fd7774aff222578c2680b931a4c2c35ba.tar.gz
bcm5719-llvm-c206366fd7774aff222578c2680b931a4c2c35ba.zip
Quash a whole bunch of warnings
llvm-svn: 145624
Diffstat (limited to 'libcxx/include/mutex')
-rw-r--r--libcxx/include/mutex2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/mutex b/libcxx/include/mutex
index 8bc6b800141..62b733f4122 100644
--- a/libcxx/include/mutex
+++ b/libcxx/include/mutex
@@ -534,7 +534,7 @@ inline _LIBCPP_INLINE_VISIBILITY
void
call_once(once_flag& __flag, _Callable&& __func, _Args&&... __args)
{
- if (__builtin_expect(__flag.__state_ , ~0ul) != ~0ul)
+ if (__flag.__state_ != ~0ul)
{
typedef tuple<typename decay<_Callable>::type, typename decay<_Args>::type...> _Gp;
__call_once_param<_Gp> __p(_Gp(__decay_copy(_VSTD::forward<_Callable>(__func)),
OpenPOWER on IntegriCloud