[ORC] Remove symbols from dependency lists when failing materialization.
authorLang Hames <lhames@gmail.com>
Thu, 25 Apr 2019 23:31:33 +0000 (23:31 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 25 Apr 2019 23:31:33 +0000 (23:31 +0000)
commit4f71049a39dc7ebbb957dc701f77cd6191b20e3c
tree041b5e21092792058e1608c42a77115bc7b188c4
parent1be5369a0ce4606d8ee3113ab4372f196d20daeb
[ORC] Remove symbols from dependency lists when failing materialization.

When failing materialization of a symbol X, remove X from the dependants list
of any of X's dependencies. This ensures that when X's dependencies are
emitted (or fail themselves) they do not try to access the no-longer-existing
MaterializationInfo for X.

llvm-svn: 359252
llvm/lib/ExecutionEngine/Orc/Core.cpp
llvm/unittests/ExecutionEngine/Orc/CMakeLists.txt
llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp