[ORC] Lock ThreadSafeContext during module destruction in ThreadSafeModule's
authorLang Hames <lhames@gmail.com>
Fri, 28 Sep 2018 01:41:29 +0000 (01:41 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 28 Sep 2018 01:41:29 +0000 (01:41 +0000)
commit28d596c3aa42662980dd9282d14781729ea67049
tree8444e973f6a11affab8d07d3febf0f0e74d95ae4
parent9b2c5e7c44fd28c31f4a0b088d0bf71da4fddfa5
[ORC] Lock ThreadSafeContext during module destruction in ThreadSafeModule's
move constructor.

This is basically the same fix as r343261, but applied to the move constructor:
Failure to lock the context during module destruction can lead to data races if
other threads are operating on the context.

llvm-svn: 343286
llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h