[ORC] Destroy FinalizeErr if there is a serialization error.
authorLang Hames <lhames@gmail.com>
Mon, 11 Oct 2021 20:42:21 +0000 (13:42 -0700)
committerLang Hames <lhames@gmail.com>
Mon, 11 Oct 2021 21:23:50 +0000 (14:23 -0700)
commit4fc2a4cc013b87d240b7a8bd4109fbc58495d302
treef841ac8164a2757112eb476e8ceed86efcf87cb9
parent8abf46d39a0cf93d0299ea31426a566747064f69
[ORC] Destroy FinalizeErr if there is a serialization error.

If there is a serialization error then FinalizeErr should never be set, so we
can use cantFail rather than consumeError here.
llvm/lib/ExecutionEngine/Orc/EPCGenericJITLinkMemoryManager.cpp