openmp: Fix up build if HAVE_SYNC_BUILTINS is not defined.

2020-06-02  Jakub Jelinek  <jakub@redhat.com>

	* allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
	defined.
This commit is contained in:
Jakub Jelinek 2020-06-02 11:55:42 +02:00
parent 65f1ca2e3d
commit 23438370f7

View File

@ -348,7 +348,7 @@ omp_free (void *ptr, omp_allocator_handle_t allocator)
MEMMODEL_RELAXED);
#else
gomp_mutex_lock (&allocator_data->lock);
allocator_data->used_pool_size -= data->new_size;
allocator_data->used_pool_size -= data->size;
gomp_mutex_unlock (&allocator_data->lock);
#endif
}