Fix broken build from r208135

llvm-svn: 208350
This commit is contained in:
Jonathan Roelofs 2014-05-08 18:48:43 +00:00
parent 38901ca4f6
commit bce1e4d60e
1 changed files with 1 additions and 0 deletions

View File

@ -187,6 +187,7 @@ void __cxa_guard_abort(guard_type* guard_object)
int __cxa_guard_acquire(guard_type* guard_object)
{
char* initialized = (char*)guard_object;
if (pthread_mutex_lock(&guard_mut))
abort_message("__cxa_guard_acquire failed to acquire mutex");
int result = *initialized == 0;