diff --git a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp index 7c896ab6d88e0..83c5899852d64 100644 --- a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp +++ b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp @@ -29,7 +29,8 @@ using namespace llvm::orc; Expected> loadDylib(ExecutionSession &ES, StringRef RemotePath) { - if (auto Handle = ES.getExecutorProcessControl().loadDylib(RemotePath.data())) + if (auto Handle = ES.getExecutorProcessControl().getDylibMgr().loadDylib( + RemotePath.data())) return std::make_unique(ES, *Handle); else return Handle.takeError();