[examples] Fix LLJITWithRemoteDebugging example after f341161689.

This commit is contained in:
Lang Hames 2021-10-10 20:25:44 -07:00
parent a00ff71668
commit 2e6c92c540
1 changed files with 3 additions and 1 deletions

View File

@ -139,6 +139,7 @@ launchLocalExecutor(StringRef ExecutablePath) {
close(FromExecutor[WriteEnd]); close(FromExecutor[WriteEnd]);
auto EPC = SimpleRemoteEPC::Create<FDSimpleRemoteEPCTransport>( auto EPC = SimpleRemoteEPC::Create<FDSimpleRemoteEPCTransport>(
std::make_unique<DynamicThreadPoolTaskDispatcher>(),
FromExecutor[ReadEnd], ToExecutor[WriteEnd]); FromExecutor[ReadEnd], ToExecutor[WriteEnd]);
if (!EPC) if (!EPC)
return EPC.takeError(); return EPC.takeError();
@ -208,7 +209,8 @@ connectTCPSocket(StringRef NetworkAddress) {
if (!SockFD) if (!SockFD)
return CreateErr(toString(SockFD.takeError())); return CreateErr(toString(SockFD.takeError()));
return SimpleRemoteEPC::Create<FDSimpleRemoteEPCTransport>(*SockFD); return SimpleRemoteEPC::Create<FDSimpleRemoteEPCTransport>(
std::make_unique<DynamicThreadPoolTaskDispatcher>(), *SockFD);
} }
#endif #endif