llvm-project/llvm/include
Nick Lewycky 2be81acd77 Remove the last improper use of getGlobalContext() from LLVM.
This caused a race condition where a thread calls ~LLVMContextImpl which calls
Module::dropAllReferences which calls begin() on an empty ilist that would
create the sentinel, which racily accesses the global context.

This can not be fixed by locking inside createSentinel because the lock would
need to be shared with all users of the global context, including those that
reside outside LLVM's own code.

llvm-svn: 137546
2011-08-13 01:04:44 +00:00
..
llvm Remove the last improper use of getGlobalContext() from LLVM. 2011-08-13 01:04:44 +00:00
llvm-c Initial commit of the 'landingpad' instruction. 2011-08-12 20:24:12 +00:00