[ORC] Propagate errors to handlers when sendMessage fails.
authorLang Hames <lhames@gmail.com>
Mon, 11 Oct 2021 20:42:39 +0000 (13:42 -0700)
committerLang Hames <lhames@gmail.com>
Mon, 11 Oct 2021 21:23:50 +0000 (14:23 -0700)
commit17a0858f9d17a5d0d1b70b0e409e59a9f96967ca
tree7fef577964ffcd90ab78751d4fb24a7dea866468
parent4fc2a4cc013b87d240b7a8bd4109fbc58495d302
[ORC] Propagate errors to handlers when sendMessage fails.

In SimpleRemoteEPC, calls to from callWrapperAsync to sendMessage may fail.
The handlers may or may not be sent failure messages by handleDisconnect,
depending on when that method is run. This patch adds a check for an un-failed
handler, and if it finds one sends it a failure message.
llvm/include/llvm/ExecutionEngine/Orc/ExecutorProcessControl.h
llvm/lib/ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.cpp
llvm/lib/ExecutionEngine/Orc/SimpleRemoteEPC.cpp