[ORC] In RTDyldObjectLinkingLayer, only call NotifyFreed if the object file
authorLang Hames <lhames@gmail.com>
Fri, 21 Sep 2018 22:59:48 +0000 (22:59 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 21 Sep 2018 22:59:48 +0000 (22:59 +0000)
commit47fc3a45507f16d4671bd68d711198f40da2596f
treeca899827ff320a2827e059c9e63dc9cb55bebf86
parent34893e6c0fb103f6470035cd46e637463d47a01e
[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
llvm/include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h