mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 19:02:35 +00:00
[ORC] In RTDyldObjectLinkingLayer, only call NotifyFreed if the object file
has been finalized. This prevents crashes on unfinalized objects for clients using JITEventListeners. Patch by Geoff Levner. Thanks Geoff! llvm-svn: 342783
This commit is contained in:
parent
628d161d70
commit
f2c678b710
@ -203,7 +203,7 @@ private:
|
||||
}
|
||||
|
||||
~ConcreteLinkedObject() override {
|
||||
if (this->Parent.NotifyFreed)
|
||||
if (this->Parent.NotifyFreed && ObjForNotify.getBinary())
|
||||
this->Parent.NotifyFreed(K, *ObjForNotify.getBinary());
|
||||
|
||||
MemMgr->deregisterEHFrames();
|
||||
|
Loading…
x
Reference in New Issue
Block a user