diff options
| author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2017-08-02 20:06:32 +0000 |
|---|---|---|
| committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2017-08-02 20:06:32 +0000 |
| commit | 1b536724d9fb49657b56b25e8f1514b4fe4cea60 (patch) | |
| tree | 37f9a0b9c0f51d930d2ac1ffcd39b96b5e6bfdc3 /llvm/lib/Target | |
| parent | 4f90c82aecdb23539b2b2b4ab844017387153c6a (diff) | |
| download | bcm5719-llvm-1b536724d9fb49657b56b25e8f1514b4fe4cea60.tar.gz bcm5719-llvm-1b536724d9fb49657b56b25e8f1514b4fe4cea60.zip | |
Move lock acquire/release functions in task deque cleanup code
The original locations can be reached without initializing the lock variable
(td_deque_lock), so it is potentially unsafe. It is guaranteed that the lock
is initialized if the deque (td_deque) is not NULL, and lock functions can be
safely called.
Patch by Hansang Bae
Differential Revision: https://reviews.llvm.org/D36017
llvm-svn: 309875
Diffstat (limited to 'llvm/lib/Target')
0 files changed, 0 insertions, 0 deletions

