summaryrefslogtreecommitdiffstats
path: root/llvm/examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp
diff options
context:
space:
mode:
authorElia Geretto <elia.f.geretto@gmail.com>2020-01-29 05:45:27 +0000
committerHans Wennborg <hans@chromium.org>2020-01-29 21:42:30 +0100
commit52c1d209acec58b393290a5a126aa6f1d38beb1e (patch)
treecee3993bbb8f105d3744fdb9a35cf876962236b6 /llvm/examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp
parent425198bf1f98e93be37b8675e29ac6d37529dc68 (diff)
downloadbcm5719-llvm-52c1d209acec58b393290a5a126aa6f1d38beb1e.tar.gz
bcm5719-llvm-52c1d209acec58b393290a5a126aa6f1d38beb1e.zip
[PassManagerBuilder] Remove global extension when a plugin is unloaded
This commit fixes PR39321. GlobalExtensions is not guaranteed to be destroyed when optimizer plugins are unloaded. If it is indeed destroyed after a plugin is dlclose-d, the destructor of the corresponding ExtensionFn is not mapped anymore, causing a call to unmapped memory during destruction. This commit guarantees that extensions coming from external plugins are removed from GlobalExtensions when the plugin is unloaded if GlobalExtensions has not been destroyed yet. Differential Revision: https://reviews.llvm.org/D71959 (cherry picked from commit ab2300bc154f7bed43f85f74fd3fe31be71d90e0)
Diffstat (limited to 'llvm/examples/LLJITExamples/LLJITWithObjectCache/LLJITWithObjectCache.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud