diff options
author | Zachary Turner <zturner@google.com> | 2014-06-11 23:03:31 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2014-06-11 23:03:31 +0000 |
commit | a8763052319c654b924f052f55998e040a11b3f6 (patch) | |
tree | 6612d366fae070eed0392e30b67e7c8be9c0b151 /Makefile.rules | |
parent | 07aac43603269ab7b8f105b32e24a67d915ac01d (diff) | |
download | llvm-a8763052319c654b924f052f55998e040a11b3f6.tar.gz llvm-a8763052319c654b924f052f55998e040a11b3f6.tar.bz2 llvm-a8763052319c654b924f052f55998e040a11b3f6.tar.xz |
Don't acquire the mutex during the destructor of PassRegistry.
This destructor is run as part of static program termination, and
so all ManagedStatics (including this lock) will have been
destroyed by llvm_shutdown. Furthermore, if there is actually
a race condition during static program termination, then we are
just hiding a bug somewhere else, because other threads should
not be running at this point.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210717 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
0 files changed, 0 insertions, 0 deletions