[llvm] r292193 - [Orc][RPC] Return unsupported rpc function errors from the non-retry cases in
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 16 20:07:49 PST 2017
Author: lhames
Date: Mon Jan 16 22:07:48 2017
New Revision: 292193
URL: http://llvm.org/viewvc/llvm-project?rev=292193&view=rev
Log:
[Orc][RPC] Return unsupported rpc function errors from the non-retry cases in
negotiateFunction.
These cases were accidentally left out of r292055, resulting in a less
descriptive ECError being returned on these paths.
Modified:
llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h
Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h?rev=292193&r1=292192&r2=292193&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h Mon Jan 16 22:07:48 2017
@@ -1124,7 +1124,7 @@ public:
if (auto RemoteIdOrErr = callB<OrcRPCNegotiate>(Func::getPrototype())) {
this->RemoteFunctionIds[Func::getPrototype()] = *RemoteIdOrErr;
if (*RemoteIdOrErr == this->getInvalidFunctionId())
- return orcError(OrcErrorCode::UnknownRPCFunction);
+ return make_error<RPCFunctionNotSupported>(Func::getPrototype());
return Error::success();
} else
return RemoteIdOrErr.takeError();
@@ -1262,7 +1262,7 @@ public:
if (auto RemoteIdOrErr = callB<OrcRPCNegotiate>(Func::getPrototype())) {
this->RemoteFunctionIds[Func::getPrototype()] = *RemoteIdOrErr;
if (*RemoteIdOrErr == this->getInvalidFunctionId())
- return orcError(OrcErrorCode::UnknownRPCFunction);
+ return make_error<RPCFunctionNotSupported>(Func::getPrototype());
return Error::success();
} else
return RemoteIdOrErr.takeError();
More information about the llvm-commits
mailing list