aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-08-13 01:04:44 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-08-13 01:04:44 +0000
commit2be81acd775c0ac9d6bdc30cd2c96c8d71fb22da (patch)
tree9ac555059e40bf38f6d5aee44b9f3dcdc8658262 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent66243847a50f83a03554f43e8351094faf3de2be (diff)
downloadllvm-2be81acd775c0ac9d6bdc30cd2c96c8d71fb22da.zip
llvm-2be81acd775c0ac9d6bdc30cd2c96c8d71fb22da.tar.gz
llvm-2be81acd775c0ac9d6bdc30cd2c96c8d71fb22da.tar.bz2
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
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions